inputEx-library

inputex-ratingstars  3.0.0a

inputEx-library > inputex-ratingstars > inputEx.RatingStars
Search:
 
Filters

Class inputEx.RatingStars - extends inputEx.Field

Create a star rating Field This field has been made by integrating script from http://www.unessa.net/en/hoyci/projects/yui-star-rating/ To use it with auto data sending, use RatingStars

Constructor

inputEx.RatingStars ( options )
Parameters:
options <Object> The following options are added for RatingStars :
  • averageValue: average value before clicking, must be a float number
  • nRates: numbers of vote
  • disableRate: Disable the rate but show stars
  • nStars: integer number of stars (default : 5)
  • disabled: disable voting
  • message: string C-like with % convention string for display Message (default 'Rating: % (% votes cast)')
  • disableMessage: string String to show when mouse pass hover the stars and stars are disabled

Properties inherited from inputEx.Field:

Methods

initEvents

void initEvents ( )
InitEvents

onAsync

void onAsync ( )
onAsync is called by the containing form when request is Send

onClickRating

void onClickRating ( )

onHoverStar

void onHoverStar ( )
When mouse is over a star

render

void render ( )
render stars

resetStars

void resetStars ( )
reset Stars and note

setMessage

void setMessage ( )
Set message options of the selectField

showMessage

void showMessage ( )
Tell something under the stars

Events inherited from inputEx.Field:


Copyright © 2011 Eric Abouaf All rights reserved.