SMART datagrid v.1 > Classes

Back  Forward

DataLudi.ListCellEditor  class

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

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

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

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

Base Classes
TextCellEditor > CellEditor > EventAware > DLBase
Inherited Classes
SearchCellEditor
Constructor
function ListCellEditor (grid: GridBase, parentElement: HtmlElement);
Properties
caseSensitive
commitOnSelect
domainOnly
dropDownCount
dropDownPosition
dropDownWidth
insideSearch
isListing
itemsCallback
itemSortStyle
labels
listing
listItemColumned
listItemDisplay
listItemGap
listItemSeparator
listItemStyles
narrowSearch
partialMatch
subItemStyles
textReadOnly
values
Inherited Properties
CellEditor.booleanFormat
CellEditor.datetimeFormat
CellEditor.emptyValue
CellEditor.fontName
CellEditor.fontSize
CellEditor.keyCallback
TextCellEditor.maxLength
TextCellEditor.minLength
TextCellEditor.noHangul
TextCellEditor.text
CellEditor.textCase
Inherited Methods
EventAware.addListener
DLBase.assign
CellEditor.ctor
TextCellEditor.ctor
DLBase.getProperties
DLBase.getProperty
EventAware.removeListener
DLBase.setProperties
DLBase.setProperty
DLBase.toggle

 

See Also
LineCellEditor
DateCellEditor
Examples
List Cell Editor