class SAPO.Component.InputCustom
Defined in Component/InputCustom/0.1/lib.js

Constructor Summary
InputCustom (String|DomElement target, Object options)

requires SAPO.Dom.Element

requires SAPO.Dom.Event

requires SAPO.Dom.Css

Provides an easy away to customize radio buttons and checkboxs

Function Summary
Public customize (DomElement input)
customize specified input
Public destroy()
clear static event handler
Public update (Optional DomElement input, Options Function callback)
update all the inputs state or the specified one

Constructor Details

constructor InputCustom

InputCustom(String|DomElement target, Object options)

requires SAPO.Dom.Element

requires SAPO.Dom.Event

requires SAPO.Dom.Css

Provides an easy away to customize radio buttons and checkboxs

Parameters:
target - Render the inputs on the specified target
options Options for the input custom
  • String type - checkbox or radio
  • Optional Array inputs - array of input elements to customize
  • Optional Function onChange - callback on check/uncheck inputs

Function Details

function customize

Public customize(DomElement input)
customize specified input
Parameters:
input
Returns:
{DomElement} input

function destroy

Public destroy()
clear static event handler

function update

Public update(Optional DomElement input, Options Function callback)
update all the inputs state or the specified one
Parameters:
input
callback after update