Klipfolio Dashboard 5 API

Object Checkbox

Object
   |
   +--Checkbox

The Checkbox object provides an API to a checkbox component in the Klip's setup window.

Use myTab.addCheckbox() to add a checkbox to a tab, where myTab is a Tab object. If your Klip requires a large number of checkboxes, consider using a ComboBox control instead.

Example

The following onLoad() function creates a new tab called 'New Tab', then adds a checkbox called 'New Checkbox'.
 function onLoad() {
 
     // Create a new tab
     var tab = Setup.addTab( "New Tab" );
 
     // Add a checkbox to the tab
     checkBox = tab.addCheckbox( "New CheckBox" );
 }
 
In the above function, the call to Setup.addTab( "New Tab" ) adds a new Tab object to the Klip's Setup array.

Each Tab object in the Setup array corresponds to a tab in a Customize Klip window. This window is visible when you right-click on a Klip and choose 'Customize Klip...'

Each Tab object can have multiple UI components, and each Klip can have multiple tabs. Use the Button, Checkbox, ComboBox, ListControl, Spacer, Text, TextArea, and TextField objects in a tab to enable users to configure the Klip to their preferences.


Properties Summary
 boolean checked
          The checked (true) or unchecked (false) state of this checkbox.
 boolean disabled
          The enabled (true) or disabled (false) state of this checkbox.
 boolean radio
          Make checkbox appear as a radio button instead of a checkbox (default false).
 String value
          The label displayed by this checkbox.
   
Function Summary
 function onClick( [<boolean> state] )
           Specifies a Handler Function for Klipfolio Dashboard to call when the user clicks the checkbox.

Properties Detail

checked

boolean checked

disabled

boolean disabled

radio

boolean radio

value

String value

Function Detail

onClick

function onClick( [<boolean> state] )

Klipfolio Dashboard 5 API

© 2009 Klipfolio Inc. All Rights Reserved.