YUI recommends YUI3.

YUI 2 has been deprecated since 2011. This site acts as an archive for files and documentation.

This documentation is no longer maintained.

Yahoo! UI Library

DataTable Widget  2.9.0

Yahoo! UI Library > datatable > YAHOO.widget.CheckboxCellEditor
Search:
 
Filters

Class YAHOO.widget.CheckboxCellEditor - extends YAHOO.widget.BaseCellEditor

The CheckboxCellEditor class provides functionality for inline editing DataTable cell data with checkboxes.

Constructor

YAHOO.widget.CheckboxCellEditor ( oConfigs )
Parameters:
oConfigs <Object> (Optional) Object literal of configs.

Properties

checkboxes - HTMLElement[]

Reference to the checkbox elements.

checkboxOptions - HTML[] | Object[]

Array of checkbox values. Can either be a simple array (e.g., ["red","green","blue"]) or a an array of objects (e.g., [{label:"red", value:"#FF0000"}, {label:"green", value:"#00FF00"}, {label:"blue", value:"#0000FF"}]). String values are treated as markup and inserted into the DOM as innerHTML.

value - String[]

Array of checked values

Methods

focus

void focus ( )
Sets focus in CheckboxCellEditor.

getInputValue

void getInputValue ( )
Retrieves input value from CheckboxCellEditor.

handleDisabledBtns

void handleDisabledBtns ( )
After rendering form, if disabledBtns is set to true, then sets up a mechanism to save input without them.

renderForm

void renderForm ( )
Render a form with input(s) type=checkbox.

resetForm

void resetForm ( )
Resets CheckboxCellEditor UI to initial state.


Copyright © 2011 Yahoo! Inc. All rights reserved.