RealGrid2 API
Interface
EditorOptions

EditorOptions

Configuration model for editor information managed at the grid level

Signature:

export interface EditorOptions

Remarks

When setting it as an option in Grid, you only need to enter the necessary information.

If the months property is specified, the monthDisplayFormat property is ignored.

Example

grid.setEditorOptions({yearDisplayFormat: "{Y} year"});

Properties

PropertyTypeDescription
dateCellEditorDateCellEditorSpecifies the default settings of dateCellEditor.
dropdownCellEditorDropDownCellEditorSpecifies the default settings of dropdownCellEditor.
holidaysHolidaysPublic holidays displayed
monthDisplayFormatstringMonth display format in calendar pop-up
monthsstring[]Month display format in calendar pop-up
multiCheckCellEditorMultiCheckCellEditorSpecifies the basic settings of multicheckCellEditor.
numberCellEditorNumberCellEditorSpecifies the basic settings of numberCellEditor.
searchCellEditorSearchCellEditorSpecifies the basic settings of searchCellEditor.
showMarqueebooleanWhether to display the List Editor in the center of the screen on mobile devices
titleStatementstring(ALPHA) Editor's title text
viewGridInsidebooleanWhether to include it inside the grid DOM
weekDaysstring[]Day display format in calendar pop-up
yearDisplayFormatstringYear display format in calendar pop-up

Properties Desc

dateCellEditor

dateCellEditor의 기본설정을 지정한다.

Type - DateCellEditor


dropdownCellEditor

dropdownCellEditor의 기본설정을 지정한다.

Type - DropDownCellEditor


holidays

표시되는 공휴일

Type - Holidays


monthDisplayFormat

달력 팝업에서의 월의 표시 형태

Type - string

Remarks:

"월"에 대한 문구만 수정 가능 months 속성이 지정되면 본 속성은 무시 ex) {M} Month


months

달력 팝업에서의 월의 표시 형태

Type - string[]

Remarks:

ex) ['Jan', 'Feb', 'Mar', 'Apr', ...]


multiCheckCellEditor

multicheckCellEditor의 기본설정을 지정한다.

Type - MultiCheckCellEditor


numberCellEditor

numberCellEditor의 기본설정을 지정한다.

Type - NumberCellEditor


searchCellEditor

searchCellEditor의 기본설정을 지정한다.

Type - SearchCellEditor


showMarquee

mobile기기에서 List Editor를 화면 가운데 표시할지 여부

Type - boolean


titleStatement

편집기의 제목 문구

Type - string


viewGridInside

그리드 DOM 내부에 포함시킬 것인지의 여부

Type - boolean

Remarks:

editor element 가 그리드 element 내부에 생성되어 브라우저가 스크롤 되는 경우 함께 스크롤 된다.


weekDays

달력 팝업에서의 요일의 표시 형태

Type - string[]

Remarks:

ex) ['Mon', 'Tue', 'Wed', 'Thu', ...]


yearDisplayFormat

달력 팝업에서의 년의 표시 형태

Type - string

Remarks:

"년"에 대한 문구만 수정 가능 ex) {Y} Year