Skip to content

ListboxSortable是基于Laravel-admin表单组件的扩展,实现了listbox的拖拽排序功能。

License

Notifications You must be signed in to change notification settings

hanchikang/laravel-admin-listbox-sortable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ListboxSortable for Laravel-admin 1.6+

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).

About

ListboxSortable是基于Laravel-admin表单组件的扩展,实现了listbox的拖拽排序功能。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published