Skip to content

Set a default filter? #948

Closed Answered by tonypartridge
tonypartridge asked this question in Q&A
Discussion options

You must be logged in to vote

I've solved it with the below

    public function mount() {
        if(!$this->getAppliedFilterWithValue('pay_period')) {
            $this->setFilter('pay_period', '2022-10-01');
        }
    }

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@LWlook
Comment options

@LWlook
Comment options

Answer selected by tonypartridge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants