DataLudi Grid v.1 > Classes

Back  Forward

DropDownCellEditor  class

選択が可能な項目達が表示されるリストボックスを表示するテキストエディター。 入力の時、ユーザーが入力した値に一番似たリストの項目が選択され、 その項目をマウスでクリックするか、enterキーを押せばその項目の値で編集機の内容が変更になる。 この時、commitOnSelecttrueなら選択された値でデータセルの値が変更になる。 

リストに出る項目達はvaluesで指定する。 labelsvaluesの分だけの項目を指定すれば、リストにはvaluesの代わりにlabelsの項目が表示される。 その場合にも実際にデータセルの適用される値はvaluesに設定された値たちの中で一つになる。 

readOnlytrueならリストボックスを広げられない。 

カラムeditorの設定の時type"dropdown"に指定する。 

Base Classes
TextCellEditor > CellEditor > EventAware > DLBase
Inherited Classes
SearchCellEditor
Constructor
function DropDownCellEditor (grid: GridBase, parentElement: HtmlElement);
Properties
caseSensitive
commitOnSelect
domainOnly
dropDownCount
dropDownPosition
dropDownWidth
isListing
itemSortStyle
labels
textReadOnly
values
Inerhited Properties
CellEditor.booleanFormat
CellEditor.datetimeFormat
CellEditor.editIndex
CellEditor.fontName
CellEditor.fontSize
CellEditor.hasButton
CellEditor.isEditing
TextCellEditor.maxLength
CellEditor.readOnly
TextCellEditor.text
CellEditor.textCase
Methods
Inerhited Methods
EventAware.addListener
DLBase.assign
TextCellEditor.ctor
CellEditor.ctor
DLBase.getProperties
DLBase.getProperty
EventAware.removeListener
DLBase.setProperties
DLBase.setProperty

 

See Also
LineCellEditor
DateCellEditor
Examples
DropDown Cell Editor