跳转到主要内容

Textarea

多行文本输入字段。

textarea_editor

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"}
];

Basic initialization

初始化

默认情况下,lightbox 包含一个 Textarea 控件。若需添加额外的 Textarea,请按照以下步骤操作:

  1. 在 lightbox 配置中包含新的 section:
scheduler.config.lightbox.sections = [
{ name:"text", ... },
{ name:"location", height:50, map_to:"location", type:"textarea"},
{ name:"time", ...}
];
  1. 为新 section 定义标签:
scheduler.locale.labels.section_location = "Location";

Map view

属性

以下是 'textarea' 控件常用的一些关键属性(完整列表请参见这里):

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.