zorinpavel/yii2-star-rating
Composer 安装命令:
composer require zorinpavel/yii2-star-rating
包简介
A Yii2 widget for the simple star-rating plugin with captions and colors
README 文档
README
A Yii2 widget for the simple star-rating plugin with fractional rating support
How does it work
composer require zorinpavel/yii2-star-rating
<?php use zorinpavel\StarRating\StarRatingWidget; echo StarRatingWidget::widget([ 'id' => 'feedback-id', // name for the input field 'name' => 'feedback', 'value' => false, // how many stars do you want 'stars' => 5, // switch off user interaction 'disabled' => false, // input field will be with required attribute 'required' => true, // you can specify captions for each star 'starCaptions' => [ 0 => 'nothing', 1 => 'bad', 2 => 'sad', 3 => 'ok', 4 => 'good', 5 => 'very good', ], ]);
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-05-20