Download the PHP package yepsua/filament-rating-field without Composer
On this page you can find all versions of the php package yepsua/filament-rating-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yepsua/filament-rating-field
More information about yepsua/filament-rating-field
Files in yepsua/filament-rating-field
Package filament-rating-field
Short Description Ranting field for the Filament forms
License MIT
Homepage https://github.com/yepsua/filament-rating-field
Informations about the package filament-rating-field
Rating field for the Filament forms
Installation
You can install the package via composer:
Optionally, you can publish the views using
Usage
Form Field
By default the range values goes from 1 to 5 and the icon displayed is heroicon-o-star
The rating fields provides several option to customize its behavior. Next some of the more used for:
Disabled
Min and max values
Custom icons and colors
Custom size
No mouse effects
Disable the mouseenter and mouseleave animation.
Clearable
Allow the user to clear the rating selection.
Cursors
The value of the cursor is based on the Tailwind cursor. The prefix cursor-
its not required in the value.
Tooltips
Field options.
- ->color(): Set the icon colors for the rating field.
- ->disabledColor(): Set the icon color when the field is disabled.
- ->clearIconColor(): Set the color for the clear icon.
- ->icon(): Set the icon for the default items.
- ->selectedIcon(): Set the solid icon for the selected items.
- ->clearIcon(): Set the icon for the clear action.
- ->min(): Set the min value for the rating field. Default: 1
- ->max(): Set the max value for the rating field. Default: 5
- ->width(): Set the width value for each item in the field: Default: 6
- ->height(): Set the height value for each item in the field: Default: 6
- ->size(): Set the same value for the width and height properties.
- ->effects(): Enable\Disable the mouseenter and mouseleave effects. Default: true (enabled)
- ->clearable(): Add a extra icon at the end of the rating icons. Default: false
- ->cursor(): Set the default cursor
- ->disabledCursor(): Set the cursor to be displayed when the field is disabled
- ->clearIconTooltip(): Set the tooltip for the clear icon.
You can review the default value for the options above and others in the class App\Forms\Components\Rating
Table Column
RatingColumn options.
- Set the icon colors for the rating field.
- Set the icon for the default items.
- Set the solid icon for the selected items.
- Set the icons for the default items and for selected items.
- Set the min value for the rating field. Default: 1
- Set the max value for the rating field. Default: 5
- Set the width value for each item in the field: Default: 6
- Set the height value for each item in the field: Default: 6
- Set the same value for the width and height properties.
- set tooltip
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Omar Yepez
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of filament-rating-field with dependencies
filament/forms Version ^3.0
filament/tables Version ^3.0
illuminate/contracts Version ^8.0|^9.0|^10.0|^11.0
spatie/laravel-package-tools Version ^1.9.2