nemrutco / nova-global-filter

This package allows you to apply any of your existing Laravel Nova filters to your cards in Dashboards or Index and Detail view of your nova resources.
MIT License
39 stars 32 forks source link

Question: Is there a way to use predefined default value for the certain filter? #21

Closed dpetrovaliev closed 3 years ago

MuzafferDede commented 4 years ago

i think Filter Default Values on Nova docs might help you. you could define your default filter values as:

/**
 * The default value of the filter.
 *
 * @var string
 */
public function default()
{
    return true;
}
roadsend commented 3 years ago

While a default does update the filter for the main panel- it does not change the metric card. Defaults are ignored.

MuzafferDede commented 3 years ago

This issue will be fixed in next release.