Перейти к основному содержимому

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. Чтобы добавить дополнительное поле, выполните следующие шаги:

  1. Добавьте новую секцию в конфигурацию lightbox:
scheduler.config.lightbox.sections = [
{ name:"text", ... },
{ name:"location", height:50, map_to:"location", type:"textarea"},
{ name:"time", ...}
];
  1. Задайте метку для новой секции:
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.