lucasgiovanny/filament-multiselect-two-sides 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Latest Version on Packagist Total Downloads

This package is a Filament plugin that allows you to create a multiselect with two sides.

Filament Multiselector Two Sides

Example

Example of plugin

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

GitHub 信息

  • Stars: 68
  • Watchers: 1
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-22