lucasgiovanny/filament-multiselect-two-sides
最新稳定版本:v3.0.0-alpha
Composer 安装命令:
composer require lucasgiovanny/filament-multiselect-two-sides
包简介
This package is a Filament package that allows you to create a multiselect with two sides.
README 文档
README
This package is a Filament plugin that allows you to create a multiselect with two sides.
Example
Installation
You can install the package via composer:
composer require lucasgiovanny/filament-multiselect-two-sides
Optionally, you can publish the translations:
php artisan vendor:publish --tag="filament-multiselect-two-sides-translations"
Usage
use LucasGiovanny\FilamentMultiselectTwoSides\Forms\Components\Fields\MultiselectTwoSides; return $form ->schema([ MultiselectTwoSides::make('roles') ->options([ 'admin' => 'Admin', 'manager' => 'Manager', 'user' => 'User', ]), ]);
Setting labels
MultiselectTwoSides::make('roles') ->options([ 'admin' => 'Admin', 'manager' => 'Manager', 'user' => 'User', ] ]) ->selectableLabel('Available Roles') ->selectedLabel('Selected Roles'),
Enabling the search
By default, the search is disabled. To enable it, use the enableSearch method.
MultiselectTwoSides::make('roles') ->options([ 'admin' => 'Admin', 'manager' => 'Manager', 'user' => 'User', ]) ->enableSearch(),
Setting the default selected options
MultiselectTwoSides::make('roles') ->options([ 'admin' => 'Admin', 'manager' => 'Manager', 'user' => 'User', ]) ->default(['admin', 'manager']),
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 70.76k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 68
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-02-22

