DropDownCellEditor
목록으로 수정할 수 있는 편집기 (dropdown 편집기)
Signature:
export interface DropDownCellEditor extends TextCellEditor
Extends: TextCellEditor
Remarks
dropdown 편집기의 values 속성으로 지정된 목록 중 한 값을 선택하여 편집한다.
labels에 values 대신 dropdown 리스트에 표시될 텍스트들을 지정할 수 있다.
TextCellEditor 를 상속한다.
[상위 클래스]
[하위 클래스]
Example
// string type
column.editor = "list"
// object type
column.editor = {
type: "list",
values: ["VINET", "TOMSP", "VICTE"],
labels: ['label1', 'label2', 'label3'],
displayLabels: "valueLabel",
textReadOnly: true
}
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
caseSensitive | boolean | 키 입력 시 대소문자 구분 여부 | |
commitOnSelect | boolean | 목록을 선택하였을 때 commit 여부 | |
displayLabels | DropDownValueLabel | label 을 보여주는 방식 | |
domainOnly | boolean | 목록에 있는 값들만 지정할 수 있는지의 여부 | |
dropDownCount | number | 목록 아이템들의 개수 | |
dropDownPosition | DropDownPosition | 목록 선택 상자의 위치 | |
dropDownWhenClick | boolean | 셀을 클릭했을 때 목록을 펼칠지의 여부 | |
dropDownWidth | number | 목록 선택 상자의 너비 | |
itemColumned | boolean | displayLabels 속성이 DropDownValueLabel.VALUE_LABEL, DropDownValueLabel.LABEL_VALUE 인 경우, 두 값들 사이 여백의 자동 조절 후 정렬 여부 | |
itemSortStyle | DropDownSortStyle | 목록의 정렬 방식 | |
labels | any[] | 목록의 표시 값들 | |
listCallback | ListCallback | ||
partialMatch | boolean | 한글 초성 입력 시 해당 값으로 이동 여부 | |
separator | string | displayLabels 속성이 DropDownValueLabel.VALUE_LABEL, DropDownValueLabel.LABEL_VALUE 인 경우, 두 값들 사이의 구분자 | |
templateCallback | ListTemplateCallback | ||
textReadOnly | boolean | 키보드를 이용한 입력 금지 여부 | |
trimLabelText | boolean | 목록의 텍스트들 trim 여부 | |
type | 'dropdown' | 'list' | 셀 편집기 종류: dropdown | |
values | any[] | 목록의 실제 값들 |
Properties Desc
caseSensitive
키 입력 시 대소문자 구분 여부
commitOnSelect
목록을 선택하였을 때 commit 여부
displayLabels
label 을 보여주는 방식
domainOnly
목록에 있는 값들만 지정할 수 있는지의 여부
Remarks:
true
시 목록 외의 값은 지정 할 수 없다.
dropDownCount
목록 아이템들의 개수
dropDownPosition
목록 선택 상자의 위치
dropDownWhenClick
셀을 클릭했을 때 목록을 펼칠지의 여부
dropDownWidth
목록 선택 상자의 너비
itemColumned
displayLabels 속성이 DropDownValueLabel.VALUE_LABEL, DropDownValueLabel.LABEL_VALUE 인 경우, 두 값들 사이 여백의 자동 조절 후 정렬 여부
itemSortStyle
목록의 정렬 방식
labels
목록의 표시 값들
listCallback
partialMatch
한글 초성 입력 시 해당 값으로 이동 여부
separator
displayLabels 속성이 DropDownValueLabel.VALUE_LABEL, DropDownValueLabel.LABEL_VALUE 인 경우, 두 값들 사이의 구분자
templateCallback
textReadOnly
키보드를 이용한 입력 금지 여부
trimLabelText
목록의 텍스트들 trim 여부
type
셀 편집기 종류: dropdown
Remarks:
SearchCellEditor 같이 확장된 모델이 아닌, 기본 드롭 다운 편집기로 지정하고 싶다면 'list'
또는 'dropdown'
을 입력하면 된다.
values
목록의 실제 값들