여러 줄 입력이 가능한 텍스트 입력 필드입니다.
scheduler.locale.labels.section_text = 'Text';
scheduler.config.lightbox.sections = [
{ name:"text", height:50, map_to:"text", type:"textarea", focus:true },
{ name:"time", height:72, type:"time", map_to:"auto"}
];
Related sample: Basic initialization
기본적으로 lightbox에는 하나의 Textarea 컨트롤이 포함되어 있습니다. 추가로 Textarea를 하나 더 추가하려면 아래 단계를 따르세요:
scheduler.config.lightbox.sections = [
{ name:"text", ... },
{ name:"location", height:50, map_to:"location", type:"textarea"},
{ name:"time", ...}
];
scheduler.locale.labels.section_location = "Location";
'textarea' 컨트롤에서 자주 사용되는 주요 속성들은 다음과 같습니다 (전체 목록은 여기에서 확인할 수 있습니다):
name | (string) 섹션의 이름 |
height | (number) 섹션의 높이 |
map_to | (string) 해당 섹션과 연결된 데이터 속성 이름 |
type | (textarea,time,select,template,multiselect,radio,checkbox,combo) 섹션의 컨트롤 타입 |
placeholder | (string) textarea가 비어 있을 때 표시되는 플레이스홀더 텍스트 |