We are working on a rewrite of every "native" field that comes with Nova.
The idea is make them more configurable and reusable in package development. If you like the idea you can collaborate with us with your awesome PRs!
- ID
- Text
- Number
- Textarea
- Select
- Password
- Boolean
- Trix
- File
- Image
- BelongsTo
- Currency
- Status
- Avatar
- Gravatar
- Code
- Country
- Date
- DateTime
- Markdown
- Place
- Timezone
- JSON (Documentation)
- Row (Documentation)
Some examples:
Boolean::make('Activo', 'active')
->yesLabel('Yeah')
->noLabel('Nope')
->hideLabelInDetail()
->dotClasses('some classes')
->successClass('bg-warning')
We are also adding events in vue components that propagates up to the chain so the parent notices when something has happened
Looking forward to see your feedback.
Run this command in your nova project:
composer require 64robots/nova-fields