Yahoo! UI Library

DataTable Widget  2.9.0

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

Class YAHOO.widget.RadioCellEditor - extends YAHOO.widget.BaseCellEditor

The RadioCellEditor class provides functionality for inline editing DataTable cell data with radio buttons.

Constructor

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

Properties

radioOptions - HTML[] | Object[]

Array of radio values. Can either be a simple array (e.g., ["yes","no","maybe"]) or a an array of objects (e.g., [{label:"yes", value:1}, {label:"no", value:-1}, {label:"maybe", value:0}]). String values are treated as markup and inserted into the DOM as innerHTML.

radios - HTMLElement[]

Reference to radio elements.

Methods

focus

void focus ( )
Sets focus in RadioCellEditor.

getInputValue

void getInputValue ( )
Retrieves input value from RadioCellEditor.

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=radio.

resetForm

void resetForm ( )
Resets RadioCellEditor UI to initial state.


Copyright © 2011 Yahoo! Inc. All rights reserved.