ButtonCellRenderer

버튼을 표시하는 렌더러

상세 설명

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

[상위 클래스]

CellRenderer

예제 코드

// string type
column.renderer = 'button';

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

프로퍼티 정보

buttonStyle


buttonStyle: string

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

기본값

'rg-button-renderer-button'

enterKey


enterKey: boolean

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

상세 설명

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

기본값

true

hideWhenEmpty


hideWhenEmpty: boolean

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

상세 설명

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

기본값

true

spaceKey


spaceKey: boolean

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

상세 설명

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

기본값

true

type


type: 'button'

종류: 버튼