YUI recommends YUI 3.

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

Yahoo! UI Library

DataTable Widget  2.8.1

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

Class YAHOO.widget.DropdownCellEditor - extends YAHOO.widget.BaseCellEditor

The DropdownCellEditor class provides functionality for inline editing DataTable cell data a SELECT element.

Constructor

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

Properties

dropdown - HTMLElement

Reference to Dropdown element.

dropdownOptions - String[] | Object[]

Array of dropdown values. Can either be a simple array (e.g., ["Alabama","Alaska","Arizona","Arkansas"]) or a an array of objects (e.g., [{label:"Alabama", value:"AL"}, {label:"Alaska", value:"AK"}, {label:"Arizona", value:"AZ"}, {label:"Arkansas", value:"AR"}]).

multiple - Boolean

Enables multi-select.

size - Number

Specifies number of visible options.

Methods

focus

void focus ( )
Sets focus in DropdownCellEditor.

getInputValue

void getInputValue ( )
Retrieves input value from DropdownCellEditor.

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 select element.

resetForm

void resetForm ( )
Resets DropdownCellEditor UI to initial state.


Copyright © 2010 Yahoo! Inc. All rights reserved.