Download the PHP package bessamu/ajax-multiselect-nova-field without Composer
On this page you can find all versions of the php package bessamu/ajax-multiselect-nova-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package ajax-multiselect-nova-field
Ajax Multiselect Nova Field
Laravel Nova package add vue-multiselect field work with ajax requests. Field values save as json string.
Getting Started
Installing
Install the package in a project via composer:
Usage
Ajax multiselect field have a model
option for searching by ajax queries.
Option optionsModel
required for this nova field:
- Parameter is model class string, must be extended by
Illuminate\Database\Eloquent\Model
.
Values saved as json string in a column.
All options
option | required | parameters | description |
---|---|---|---|
optionsModel() |
require | string $modelClass |
Set a model class to search. |
optionsLabel() |
optional | string $searchLabel |
Set a label for frontend output and search models. By default searching label is 'name' . |
queryWhere() |
optional | string $column, string $value, string $operator = '=' |
Set query by a column, value and operator |
placeholder() |
optional | string $placeholder |
Set a placeholder for vue-multiselect input. |
maxOptions() |
optional | int $max |
Set the maximal number of selections and limit returned models |
orderBy() |
optional | string $column, string $direction = 'asc' |
Order your outputs by column name and use direction asc (default) or desc . |
Authors
- Korotkov Pavel - Initial work - Bessamu
See also the list of contributors who participated in this project.
License
This project is licensed under the MIT License - see the LICENSE.md file for details
All versions of ajax-multiselect-nova-field with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.1.0
The package bessamu/ajax-multiselect-nova-field contains the following files
Loading the files please wait ....