bolyfci / livewire-multiselect
v1.0.1
2021-02-20 17:45 UTC
Requires
- php: ^7.4|^8.0
- illuminate/contracts: ^8.0
- spatie/laravel-package-tools: ^1.1
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
This package is auto-updated.
Last update: 2021-12-04 18:38:04 UTC
README
需求
安装
您可以通过 composer 安装此包。
composer require bolyfci/livewire-multiselect
用法
<x-multiselect wire:model="multiselect" :options="[['id' => 'laravel', 'name' => 'Laravel'], ['id' => 'alpineJs', 'name' => 'Alpine JS'], ['id' => 'livewire', 'name' => 'Livewire']]" />
属性
属性 | 参数 | 默认值 | 示例 |
---|---|---|---|
trackBy | String 用于比较对象。 | id | trackBy="id" |
label | String 选项对象的标签,将显示在下拉列表中。 | name | title="name" |
options | Array 可用选项数组。 | ||
placeholder | string 等同于 input 的 placeholder 属性。 | select options | placholder="select options" |
测试
composer test
更新日志
请参阅 CHANGELOG 了解最近更改的详细信息。
贡献
请参阅 CONTRIBUTING 了解详细信息。
安全漏洞
请参阅 我们的安全策略 了解如何报告安全漏洞。
鸣谢
许可
MIT 许可证 (MIT)。请参阅 许可文件 了解更多信息。