Skip to content

This widget allows users to rate or purely display the rates only

Notifications You must be signed in to change notification settings

DavidHe1127/rating_bar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rating Widget

Appcelerator Titanium Appcelerator Alloy License

Introduction

This widget allows users to rate or purely display the rates only.

Demo

iOS Gif Demo Android Gif Demo

How to use it

Check GitTio

Parameters and methods

Function Parameters Usage Return Value Type
getRate N/A return rates integer
  • @param {boolean} _args.ratable - if false not allow for rating. false by default
  • @param {integer} _args.rate - 0~5
  • @param {integer} _args.size - size of the star - width and height are equal
  • @param {integer} _args.left
  • @param {integer} _args.right
  • @param {integer} _args.top
  • @param {integer} _args.bottom

Example :

<Alloy>
	  <Window class="container">
	  	<Widget src="com.tourist.components.rating" ratable=true id="rating" rate="3" size=25 left=15 top=30 />
	  </Window>
</Alloy>

Version

  • 1.0
    • Initial version

License

Copyright 2011-2015 David He

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

This widget allows users to rate or purely display the rates only

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published