JqxRating: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Created page with "File:PhotoGallery1.png == Description == PhotoGallery displays a slide show of images. It is based on the jqWidgets jqxScrollView widget. == Properties and Methods == S..."
 
Line 44: Line 44:




</pre>
== Events ==
=== onpageChanged ===
This event is triggered when the current page is changed.
<pre>
Function PhotoGallery1_onpageChanged(event)
  Dim Page
  Page = event.args.currentPage
  console.log(Page)
End Function
</pre>
</pre>



Revision as of 13:36, 14 May 2013

Description

PhotoGallery displays a slide show of images. It is based on the jqWidgets jqxScrollView widget.

Properties and Methods

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

Example

Events

Function Rating1_onchange(event)
  Dim curValue
  curValue = event.value
  Label1.textContent = "Rating Value: " & curValue 
End Function

Functions

Rem disable rating
Function Button1_onclick()
  $("#Rating1").jqxRating({disabled:True})
End Function

Rem enable rating
Function Button2_onclick()
  $("#Rating1").jqxRating({disabled:False})
End Function

Rem Set rating value 5*
Function Button3_onclick()
  $("#Rating1").jqxRating({value:5})
End Function

Rem Get rating value
Function Button4_onclick()
  Dim curValue
  curValue = $("#Rating1").jqxRating("value")
  MsgBox "Current Value is : " & curValue 
End Function


Output

See above.