Skip to content

v3.2.2

Latest
Compare
Choose a tag to compare
@atmonshi atmonshi released this 04 Sep 18:19
· 2 commits to 3.x since this release
17d62ae

What's Changed

Allow to disable options:

usage:

MatrixAlias::make('options')
    ->disableOptionWhen(fn (string $value): bool => $value === 'm' || $value === 'p' || $value === 'users')
    ->rowSelectRequired(false)

    ->label('Resources Operations')
    ->asRadio()
    ->columnData([
        'c'=>'Create',
        'r'=>'Read',
        'u'=>'Update',
        'd'=>'Delete',
        'm'=>'Manage',
        'p'=>'Approve',
    ])
    ->rowData([
        'users'=>'Users',
        'companies'=>'Companies',
        'clients'=>'Clients',
    ]),

output:
Screenshot 2024-09-04 at 3 25 12 PM

Full Changelog: v3.2.1...v3.2.2