class RtFormPanel
설정 정보 입력 등을 위한 폼 레이아웃을 표시하는 패널.
RtListOptions.formPanel 속성으로 접근한다.
주로 리스트 헤더 아래 컨트롤 상단에 표시되지만, position 속성으로 표시 위지를 지정할 수 있다.
onClickButton 사용시 ctx에서 템플릿에서 정의한 편집기 id로 값에 접근할 수 있다.
템플릿에서 정의한 IRtButtonRenderer onClick 콜백에서도 ctx를 사용해 같은 방법으로 편집기 값에 접근할 수 있다.
RtListOptions.formPanel 속성으로 접근한다.
주로 리스트 헤더 아래 컨트롤 상단에 표시되지만, position 속성으로 표시 위지를 지정할 수 있다.
onClickButton 사용시 ctx에서 템플릿에서 정의한 편집기 id로 값에 접근할 수 있다.
템플릿에서 정의한 IRtButtonRenderer onClick 콜백에서도 ctx를 사용해 같은 방법으로 편집기 값에 접근할 수 있다.
list.setConfig({
options: {
formPanel: {
template: 'addr_form',
position: 'top',
size: '75%',
...
}
}
});{ ...
renderer: {
type: 'button',
label: 'Submit',
onClick: args => {
console.log(args.ctx.getValue('name'));
return true;
}
},
...
}See Also
Template Params
Events
Properties
- template:
stringLayout template 이름.
Methods
Inherited Properties
- RtDialogPanel.cancelLabel
- RtDialogPanel.closeLabel
- RtDialogPanel.okLabel
- RtDialogPanel.onClickButton
- RtListPanel.position
- RtListPanel.size
- RtListPanel.minSize
- RtListPanel.maxSize
- RtListPanel.style