Recommend this page to a friend! |
Download .zip |
Info | Documentation | Screenshots | View files (15) | Download .zip | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not yet rated by the users | Total: 34 | All time: 10,922 This week: 96 |
Version | License | PHP version | Categories | |||
toggle-switch 1.0 | Custom (specified... | 5 | HTML, PHP 5, Libraries, Content manag... |
Description | Author | |
This package provides a toggle control to use in Laravel Nova. |
A Laravel Nova toggle switch field
You can install the package in to a Laravel app that uses Nova via composer:
composer require naif/toggle
Add the below to Nova/User.php resource:
# You can set the toggle swhich color by color code
Toggle::make('Toggle')->color('#7e3d2f'),
<img src="https://github.com/naifalshaye/toggle-switch/blob/master/screenshots/colors.png" width="142">
<img src="https://raw.githubusercontent.com/naifalshaye/toggle-switch/master/screenshots/image1.png" width="500">
<img src="https://raw.githubusercontent.com/naifalshaye/toggle-switch/master/screenshots/image2.png" width="500">
<img src="https://raw.githubusercontent.com/naifalshaye/toggle-switch/master/screenshots/image3.png" width="500">
<img src="https://raw.githubusercontent.com/naifalshaye/toggle-switch/master/screenshots/image4.png" width="500">
naif@naif.io
https://www.linkedin.com/in/naif
The MIT License (MIT). Please see License File for more information.
Screenshots | ||
Files |
File | Role | Description | ||
---|---|---|---|---|
dist (2 directories) | ||||
resources (2 directories) | ||||
src (2 files) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
mix-manifest.json | Data | Auxiliary data | ||
package.json | Data | Auxiliary data | ||
README.md | Doc. | Documentation | ||
webpack.mix.js | Data | Auxiliary data |
Files | / | resources | / | js | / | components |
File | Role | Description |
---|---|---|
DetailField.vue | Data | Auxiliary data |
FormField.vue | Data | Auxiliary data |
IndexField.vue | Data | Auxiliary data |
Files | / | src |
File | Role | Description |
---|---|---|
FieldServiceProvider.php | Class | Class source |
Toggle.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.