magi82 / Mgstarratingview
Licence: mit
MGStarRatingView is a view for rating.
Stars: ✭ 70
Programming Languages
swift
15916 projects
Projects that are alternatives of or similar to Mgstarratingview
Rateit.js
Rating plugin for jQuery. Fast, Progressive enhancement, touch support, icon-font support, highly customizable, unobtrusive JavaScript (using HTML5 data-* attributes), RTL support, supports as many stars as you'd like, and also any step size.
Stars: ✭ 146 (+108.57%)
Mutual labels: star, rating
Laravel Reactions
Laravel reactions package for implementing reactions (eg: like, dislike, love, emotion, etc) on Eloquent models.
Stars: ✭ 58 (-17.14%)
Mutual labels: star, rating
Android Ratingreviews
Simple star rating system bars, a view similar to the ones seen on Google Playstore. ⭐🌟✨
Stars: ✭ 110 (+57.14%)
Mutual labels: star, rating
Starrate
swift电商五星评价,星星评分控件,支持自定义数量、拖拽、间隔、设置最小星星数等操作
Stars: ✭ 85 (+21.43%)
Mutual labels: star, rating
React Native Star Rating
A React Native component for generating and displaying interactive star ratings
Stars: ✭ 724 (+934.29%)
Mutual labels: star, rating
Awesomstar
Awesome (star)rating system with PHP, MySQL and pure JavaScript.
Stars: ✭ 15 (-78.57%)
Mutual labels: star, rating
rater-js
Star rating widget for the browser. Unlimited number of stars. No dependencies. No Jquery required.
Stars: ✭ 66 (-5.71%)
Mutual labels: rating, star
Andratingbar
A RatingBar library for android, you can customize size ,color ,spacing and image easily!Support right to left。效果可以参看:https://juejin.im/post/6844904143220391949
Stars: ✭ 582 (+731.43%)
Mutual labels: star, rating
react-star-ratings
A customizable svg star rating component for selecting x stars or visualizing x stars
Stars: ✭ 128 (+82.86%)
Mutual labels: rating, star
Yii2 Widget Rating
A Yii2 widget for the simple yet powerful bootstrap-star-rating plugin with fractional rating support (sub repo split from yii2-widgets)
Stars: ✭ 47 (-32.86%)
Mutual labels: star, rating
Laravel Love
Add Social Reactions to Laravel Eloquent Models. It lets people express how they feel about the content. Fully customizable Weighted Reaction System & Reaction Type System with Like, Dislike and any other custom emotion types. Do you react?
Stars: ✭ 822 (+1074.29%)
Mutual labels: star, rating
Bootstrap Star Rating
A simple yet powerful JQuery star rating plugin with fractional rating support.
Stars: ✭ 985 (+1307.14%)
Mutual labels: star, rating
Smileyrating
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon.
Stars: ✭ 1,038 (+1382.86%)
Mutual labels: rating
Sa Token
这可能是史上功能最全的Java权限认证框架!目前已集成——登录验证、权限验证、Session会话、踢人下线、分布式会话、单点登录、OAuth2.0、记住我模式、模拟他人账号、临时身份切换、集成Redis、多账号认证体系、前后台分离模式、注解式鉴权、路由拦截式鉴权、花式token生成、自动续签、同端互斥登录、会话治理、密码加密、jwt集成、Spring集成...
Stars: ✭ 935 (+1235.71%)
Mutual labels: star
Newbe.mahua.framework
本SDK为实现QQ机器人平台的大一统,支持多种机器人平台:酷Q、MyPCQQ、QQLight等
Stars: ✭ 849 (+1112.86%)
Mutual labels: star
Nasa Cli
🚀 Download NASA Picture of the Day from your terminal!
Stars: ✭ 45 (-35.71%)
Mutual labels: star
MGStarRatingView
MGStarRatingView is a view for rating.
Simple and easy to implement. ☀️
It supports programmatically and xib.
No image is required. Just choose color.
Sample
Usage (Programmatically)
- Creating and Implementing a View
let starView = StarRatingView()
let attribute = StarRatingAttribute(type: .rate,
point: 30,
spacing: 10,
emptyColor: .red,
fillColor: .blue,
emptyImage: nil,
fillImage: nil)
starView.configure(attribute, current: 0, max: 5)
starView.delegate = self
self.view.addSubview(starView)
- Delegate implementation
func StarRatingValueChanged(view: StarRatingView, value: CGFloat) {
// use value
}
Usage (xib)
First, add UIView
.
Register Custom Class as StarRatingView
and register Module as MGStarRatingView
.
Please be careful.
If you type the spelling of Type String
wrongly, it will be applied as the default type.
The default type is rate
.
API Reference
// A delegate for receiving values.
public weak var delegate: StarRatingDelegate?
// A type that represents a value.
// There are three kinds. (rate, half, fill)
public var type: StarRatingType
// The current value.
public var current: CGFloat
// The maximum number of stars.
public var max: Int
// The spacing between stars.
public var spacing: CGFloat
// The size of the star.
// The horizontal and vertical sizes are the same.
public var point: CGFloat
// The color value of the empty star.
public var emptyColor: UIColor
// The color value of the full star.
public var fillColor: UIColor
// The image object of the empty star.
var emptyImage: UIImage?
// The image object of the full star.
var fillImage: UIImage?
Aid
Requirements
- Swift 4.0+
- iOS 8.0+
Installation
- For iOS 8+ projects with CocoaPods:
pod 'MGStarRatingView', '~> 1.0.0'
- For iOS 8+ projects with Carthage:
github "magi82/MGStarRatingView" ~> 1.0.0
Author
magi82, [email protected]
License
MGStarRatingView is available under the MIT license. See the LICENSE file for more info.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].