Download the PHP package caio-brendo/rating-input without Composer
On this page you can find all versions of the php package caio-brendo/rating-input. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download caio-brendo/rating-input
More information about caio-brendo/rating-input
Files in caio-brendo/rating-input
Package rating-input
Short Description Componente que renderiza estrelas para seleção, bastante útil para trabalhar com avaliações.
License
Informations about the package rating-input
Rating Input
Rating input is a widget for yii2 framework to render a input for rating.
DIRECTORY STRUCTURE
src/ contains source code of widget
src/assets contains assets definition
src/views contains view files
REQUIREMENTS
The minimum requirement by this project template that your Web server supports PHP 5.6.0.
INSTALLATION
Install via Composer
If you do not have Composer, you may install it by following the instructions at getcomposer.org.
You can then install this widget using the following command:
composer require caio-brendo/rating-input
USAGE
With model
If you have a model, you can use the following code:
Without model
If you don't have a model, you can use the following code:
JAVASCRIPT EVENTS
SETTINGS
The widget supports all parameters that one would pass for any Yii Input Widget. The additional parameter settings specially available for the rating input widget configuration are:
- model: The model for rendering input.
- attribute: The attribute for rendering input.
- value: The initial or actual value of the rating.
- name: The name of the entry. This is used for modelless widget.
- qtdStar: Star quantity to be selected;
- starHeight: Height for star. Must be a valid css height.
- starSpace: Space between the stars. Must be a valid css.