Skip to content
Discussion options

You must be logged in to vote

Hi @islandnuge,

Currently, you can use Action Rules to control the rows.

It might look something like this:

final class MyTable extends PowerGridComponent
{
//...
 public function actionRules(): array
    {
        return [
              Rule::rows()
                ->when(fn ($user) => $user->isActive() === false)
                ->disable(),
                ->hide(),
                ->hideToggleable(),
                ->setAttribute('class', 'bg-gray-50'),

    }

There is no rule to disable editOnClick, but, we welcome a pull request for this feature.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by luanfreitasdev
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