RealGrid2 API
Interface
ButtonCellRenderer

ButtonCellRenderer

버튼을 표시하는 렌더러

Signature:

export interface ButtonCellRenderer extends CellRenderer 

Extends: CellRenderer

Remarks

자동 높이에서 TOP_EDGE, BOTTOM_EDGE 를 사용할 수 없다.

[상위 클래스]

CellRenderer

Example

// string type
column.renderer = 'button';
 
// object type
column.renderer = {
     "type": "button",
     "hideWhenEmpty": false
}

Properties

PropertyModifiersTypeDescription
buttonStylestring표시 되는 버튼의 스타일 클래스 명
enterKeybooleanenter를 입력했을때 button.click 실행여부
hideWhenEmptyboolean빈 값일 때 버튼을 표시할지의 여부
spaceKeybooleanspaceKey를 입력했을때 button.click 실행여부
type'button'종류: 버튼

Properties Desc

buttonStyle

표시 되는 버튼의 스타일 클래스 명

enterKey

enter를 입력했을때 button.click 실행여부

Remarks:

true이면 enterKey를 입력했을때 입력했을때 button.click이 실행된다. GridBase.onCellItemClicked가 있는 경우 해당 이벤트가 호출된후 결과값이 false이면 기본동작을 실행하지 않는다

hideWhenEmpty

빈 값일 때 버튼을 표시할지의 여부

Remarks:

trueundefined, null, '', NaN 일 경우 버튼을 표시하지 않는다.

spaceKey

spaceKey를 입력했을때 button.click 실행여부

Remarks:

true이면 스페이스바를 입력했을때 button.click이 실행된다. GridBase.onCellItemClicked가 있는 경우 해당 이벤트가 호출된후 결과값이 false이면 기본동작을 실행하지 않는다

type

종류: 버튼