JqxCheckBox: Difference between revisions

From NSB App Studio
Jump to navigation Jump to search
Line 37: Line 37:
   thisExchange=""
   thisExchange=""
End Function
End Function
</pre>
== Example (JavaScript) ==
<pre>
var countries;
countries = new Array("Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antarctica", _
  "Antigua and Barbuda", "Argentina", "Armenia", "Australia", "Austria");
function setInput() {
  $("#ipSymbol").jqxInput({ placeHolder: "Enter a country.", minLength: 2, source: countries, items: 6 });
}
</pre>
</pre>



Revision as of 11:00, 31 May 2013

Description

The jqxCheckBox widget displays a check box that allows the end-user to select a true, false or indeterminate condition.

Properties and Methods

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

Example (Basic)

Dim thisExchange, value
thisExchange=""

Function xcbNYSE_onclick()
  thisExchange="Y"  
  MsgBox("You chose the New York Stock Exchange!")
End Function

Function xcbNASDAQ_onchange()
  MsgBox("You chose the Nasdaq Stock Exchange!")  
End Function

Function xcbAMEX_onchange()
  value = $("#xcbAMEX").jqxCheckBox("val");
  if value=True Then
    MsgBox("You chose the American Stock Exchange!")  
  End if
End Function

Function Button1_onclick()
  $("#xcbNYSE").jqxCheckBox("uncheck"); 
  $("#xcbNASDAQ").jqxCheckBox("uncheck"); 
  $("#xcbAMEX").jqxCheckBox("uncheck"); 
  thisExchange=""
End Function

Output

See above.