Changes
Title
unchanged
Managing a star rating with the StarRating widget in Yii 2
Category
unchanged
How-tos
Yii version
unchanged
Tags
unchanged
yii2, star, rating, widget, plugin, jquery, icon, symbol
Content
changed
[...]
With CSS3 and HTML5 supported now in most modern browsers, a simpler solution, using scalable vector icons, for perfect display across devices is attempted in this new [StarRating](http://demos.krajee.com/widget-details/star-rating) widget. This widget is part of the [yii2-widgets](http://demos.krajee.com/widgets) package. It requires no images or does not internally use a nested span of radios, but simple HTML5 and CSS3 features.
Important Notes
---------------
Before using the plugin, read this for better controlling the widget features for your Yii2 app:
1. The widget offers many features using pure CSS to markup the star symbols and fractional ratings of any value. You can read about it at the [bootstrap-star-rating plugin page](http://plugins.krajee.com/star-rating). Ensure you have the widget dependencies covered for your environment as per the [composer.json](https://github.com/kartik-v/yii2-widgets/blob/master/composer.json).[...]
5. Display an unicode icon without loading bootstrap glyphicon. You can set the `glyphicon` property to false - it will display the Unicode Star symbol.
6. Using alternative icon symbols. You can use any icon font symbol that is UTF8 encoded and pass the encoded entity in `symbol` property.
An example below:
```php[...]