inputEx Documentation Back to homepage

inputEx Documentation > inputEx.CheckBox 1.0.0

Class inputEx.CheckBox - extends inputEx.Field

Create a checkbox. Here are the added options :
  • checked: boolean, initial state
  • sentValues: couple of values that schould be returned by the getValue. (default: [true, false])

Constructor

inputEx.CheckBox ( options )
Parameters:
options <Object>  - inputEx.Field options object

Methods

getValue

<Any> getValue()
Returns:
    <Any> one of [checkedValue,uncheckedValue]

initEvents

initEvents()
Clear the previous events and listen for the "change" event

onChange

onChange(e)
Function called when the checkbox is toggled
Parameters:
    e

renderComponent

renderComponent()
Render the checkbox and the hidden field

setOptions

setOptions()
Adds the CheckBox specific options

setValue

setValue(value)
Set the value of the checkedbox
Parameters:
    value <Any>  - The value schould be one of [checkedValue,uncheckedValue] TODO: Throw an exception otherwise ?




Copyright (c) 2008 Eric Abouaf. All rights reserved.
Generated by JsDoc Toolkit 1.4.1 on Wed, 07 May 2008 10:26:29 GMT.