ckhan / laravel-admin-listbox-sortable
laravel admin listbox sortable
Installs: 325
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 2
Language:JavaScript
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-11-11 12:14:37 UTC
README
ListboxSortable是基于Laravel-admin表单组件的扩展,实现了listbox的拖拽排序功能。
Require
- Laravel-admin >= 1.6
Installation
运行下面的命令安装:
"composer require ckhan/laravel-admin-listbox-sortable"
然后,运行下面的命令发布静态文件:
"php artisan vendor:publish --provider=CKHan\ListboxSortable\ListboxSortableServiceProvider --force"
Configuration
不需要其他额外的配置
Usage
使用方法和Laravel-admin中表单组件listbox是一致的:
$form->listboxsortable($column[, $label])->options([1 => 'foo', 2 => 'bar', 'val' => 'Option name']);
或者从api中获取选项:
$form->listboxsortable($column[, $label])->options('/api/options');
Documentation
Laravel-admin开发文档Laravel-admin
License
ListboxSortable
is licensed under The MIT License (MIT).