JqxInput: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Created page with "File:jqxrating.png == Description == The rating control lets you enter and display a number of stars in a row. It is based on the jqWidgets jqxRating widget. == Properti..."
 
No edit summary
Line 1: Line 1:
[[File:jqxrating.png]]
[[File:jqxinput.png]]


== Description ==
== Description ==
The rating control lets you enter and display a number of stars in a row. It is based on the jqWidgets jqxRating widget.
The input control lets you do specialized input. It is based on the jqWidgets jqxInput widget.


== Properties and Methods ==
== Properties and Methods ==


See the complete documentation at jqWidget's site:
See the complete documentation at jqWidget's site:
http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxrating/jquery-rating-getting-started.htm
http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxinput/jquery-input-getting-started.htm


== Example ==
== Example ==


=== Events ===
=== Events ===
==== onchange (BASIC) ====
<pre>
Function Rating1_onchange(event)
  Dim curValue
  curValue = event.value
  Label1.textContent = "Rating Value: " & curValue
End Function
</pre>
==== change (JavaScript) ====
<pre>
JavaScript
$('#Rating1').bind('change', function (event)
    {
      var curValue= event.value;
      alert(curValue);
    }); 
End JavaScript
</pre>
=== Functions ===
==== Disable Rating ====
<pre>
Rem disable rating
Function Button1_onclick()
  $("#Rating1").jqxRating({disabled:True})
End Function
</pre>
==== Enable Rating ====
<pre>
Rem enable rating
Function Button2_onclick()
  $("#Rating1").jqxRating({disabled:False})
End Function
</pre>
==== Set Rating Value ====
<pre>
Rem Set rating value 5*
Function Button3_onclick()
  $("#Rating1").jqxRating({value:5})
End Function
</pre>
==== Get Rating Value ====
<pre>
Rem Get rating value
Function Button4_onclick()
  Dim curValue
  curValue = $("#Rating1").jqxRating("value")
  MsgBox "Current Value is : " & curValue
End Function
</pre>


== Output ==
== Output ==

Revision as of 14:57, 15 May 2013

Description

The input control lets you do specialized input. It is based on the jqWidgets jqxInput widget.

Properties and Methods

See the complete documentation at jqWidget's site: http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxinput/jquery-input-getting-started.htm

Example

Events

Output

See above.