Skip to content

Wire:change Event in SelectAction #8741

Answered by leandrocfe
gotzsys asked this question in Help
Discussion options

You must be logged in to vote
public $changeCategory = null;

protected function getHeaderActions(): array
{
    return [
        SelectAction::make('changeCategory')
        ->options(ReviewCategory::pluck('name', 'id'))
    ];
}

public function updatedChangeCategory()
{
    $this->setStatusFilter($this->changeCategory);
}

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@gotzsys
Comment options

@leandrocfe
Comment options

@abdulmannans-joistic
Comment options

@jimiero
Comment options

@abdulmannans-joistic
Comment options

Answer selected by gotzsys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
4 participants