ziffdavis / nova-multiselect
A Laravel Nova multiselect field.
Installs: 38 574
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 19
Forks: 4
Open Issues: 26
Language:Vue
Requires
- php: >=7.1.0
- dev-master
- v0.2.1
- v0.2
- v0.1
- dev-dependabot/npm_and_yarn/json-schema-and-jsprim-0.4.0
- dev-dependabot/npm_and_yarn/postcss-and-laravel-mix-8.4.23
- dev-dependabot/npm_and_yarn/ansi-html-and-laravel-mix--removed
- dev-dependabot/npm_and_yarn/set-value-and-union-value-2.0.1
- dev-dependabot/npm_and_yarn/axios-0.27.2
- dev-dependabot/npm_and_yarn/jquery-3.5.0
- dev-dependabot/npm_and_yarn/json5-and-laravel-mix-2.2.3
- dev-dependabot/npm_and_yarn/express-4.18.2
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/css-what-2.1.3
- dev-dependabot/npm_and_yarn/url-parse-1.5.10
- dev-dependabot/npm_and_yarn/follow-redirects-1.14.8
- dev-dependabot/npm_and_yarn/node-sass-4.14.1
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/tar-2.2.2
- dev-dependabot/npm_and_yarn/dns-packet-1.3.4
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/npm_and_yarn/ini-1.3.8
- dev-PCX-288
This package is auto-updated.
Last update: 2024-03-30 00:18:59 UTC
README
Install
composer require ziffdavis/nova-multiselect
Description
Allows having a BelongsToMany relationship MultiSelect Form Field powered by Selectize. This field is hidden on the index page.
Usage
public function fields(Request $request)
{
return [
MultiSelect::make('Category', 'categories')->options(\App\Models\Category::get(['id', 'name']))->placeHolder('Select Categories'),
];
}
Methods
Method | Description |
---|---|
options($options) |
Sets the options to use. May be a collection or array of Objects |
placeHolder($text) |
Sets the text to use as the palce holder |
disabled($bool) |
Sets whether or not the field is disabled |
optionLabel($label) |
Sets the attribute name to use for the option label (Default 'name') |
optionValue($value) |
Sets the attribute name to use for the option value (Default 'id') |