JqxRating: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Kaplanerkan (talk | contribs) |
||
Line 11: | Line 11: | ||
== Example == | == Example == | ||
Events | === Events === | ||
<pre> | <pre> | ||
Function Rating1_onchange(event) | Function Rating1_onchange(event) | ||
Line 19: | Line 19: | ||
End Function | End Function | ||
</pre> | </pre> | ||
Functions | |||
=== Functions === | |||
==== Disable Rating ==== | |||
<pre> | <pre> | ||
Rem disable rating | Rem disable rating | ||
Line 25: | Line 28: | ||
$("#Rating1").jqxRating({disabled:True}) | $("#Rating1").jqxRating({disabled:True}) | ||
End Function | End Function | ||
</pre> | |||
==== Disable Rating ==== | |||
<pre> | |||
Rem enable rating | Rem enable rating | ||
Function Button2_onclick() | Function Button2_onclick() | ||
$("#Rating1").jqxRating({disabled:False}) | $("#Rating1").jqxRating({disabled:False}) | ||
End Function | End Function | ||
</pre> | |||
==== Set Rating Value ==== | |||
<pre> | |||
Rem Set rating value 5* | Rem Set rating value 5* | ||
Function Button3_onclick() | Function Button3_onclick() | ||
$("#Rating1").jqxRating({value:5}) | $("#Rating1").jqxRating({value:5}) | ||
End Function | End Function | ||
</pre> | |||
==== Get Rating Value ==== | |||
<pre> | |||
Rem Get rating value | Rem Get rating value | ||
Function Button4_onclick() | Function Button4_onclick() | ||
Line 42: | Line 55: | ||
MsgBox "Current Value is : " & curValue | MsgBox "Current Value is : " & curValue | ||
End Function | End Function | ||
</pre> | </pre> |
Revision as of 14:24, 14 May 2013
Description
The rating control lets you enter and display a number of stars in a row. It is based on the jqWidgets jqxRating widget.
Properties and Methods
See the complete documentation at jqWidget's site: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxrating/jquery-rating-getting-started.htm
Example
Events
Function Rating1_onchange(event) Dim curValue curValue = event.value Label1.textContent = "Rating Value: " & curValue End Function
Functions
Disable Rating
Rem disable rating Function Button1_onclick() $("#Rating1").jqxRating({disabled:True}) End Function
Disable Rating
Rem enable rating Function Button2_onclick() $("#Rating1").jqxRating({disabled:False}) End Function
Set Rating Value
Rem Set rating value 5* Function Button3_onclick() $("#Rating1").jqxRating({value:5}) End Function
Get Rating Value
Rem Get rating value Function Button4_onclick() Dim curValue curValue = $("#Rating1").jqxRating("value") MsgBox "Current Value is : " & curValue End Function
Output
See above.