ButtonCellRenderer
버튼을 표시하는 렌더러
Signature:
export interface ButtonCellRenderer extends CellRenderer Extends: CellRenderer
Remarks
자동 높이에서 TOP_EDGE, BOTTOM_EDGE 를 사용할 수 없다.
[상위 클래스]
Example
// string type
column.renderer = 'button';
// object type
column.renderer = {
"type": "button",
"hideWhenEmpty": false
}Properties
| Property | Type | Description |
|---|---|---|
| buttonStyle | string | 표시 되는 버튼의 스타일 클래스 명 |
| enterKey | boolean | enter를 입력했을때 button.click 실행여부 |
| hideWhenEmpty | boolean | 빈 값일 때 버튼을 표시할지의 여부 |
| spaceKey | boolean | spaceKey를 입력했을때 button.click 실행여부 |
| type | 'button' | 종류: 버튼 |
Properties Desc
buttonStyle
표시 되는 버튼의 스타일 클래스 명
Type - string
enterKey
enter를 입력했을때 button.click 실행여부
Type - boolean
Remarks:
true이면 enterKey를 입력했을때 입력했을때 button.click이 실행된다. GridBase.onCellItemClicked가 있는 경우 해당 이벤트가 호출된후 결과값이 false이면 기본동작을 실행하지 않는다
hideWhenEmpty
빈 값일 때 버튼을 표시할지의 여부
Type - boolean
Remarks:
true 시 undefined, null, '', NaN 일 경우 버튼을 표시하지 않는다.
spaceKey
spaceKey를 입력했을때 button.click 실행여부
Type - boolean
Remarks:
true이면 스페이스바를 입력했을때 button.click이 실행된다. GridBase.onCellItemClicked가 있는 경우 해당 이벤트가 호출된후 결과값이 false이면 기본동작을 실행하지 않는다
type
종류: 버튼
Type - 'button'