Core Docs

Textarea

Input text nhiều dòng — bind string. Cấu hình `Row` để chỉnh chiều cao.

Source: Core/Components/Textarea.cs · ComType: Textarea

Cấu hình

ComType:    Textarea
FieldName:  Description
Label:      Ghi chú
ShowLabel:  true
Row:        4

Field DB dùng

FieldVai trò
FieldNameProperty của entity bind vào textarea.
RowSố dòng hiển thị mặc định (chiều cao). User vẫn resize được nếu CSS cho phép.
ShowLabelTrue → render <label> cạnh widget.
UpperCaseTrue → auto chữ hoa khi blur.
FormatDataFormat hiển thị value.
FormatEntityFormat toàn bộ entity (template).
EventsJSON map event → method C# (Change, Input).
PlainTextTrue → bỏ URL-encode 6 ký tự đặc biệt (+ / ? # & '), lưu raw.
ChildStyleInline CSS style apply lên <textarea> element.

Events kích hoạt

EventMethod signature
change(entity, newValue, oldValue, parent)
input(entity)

Tip

  • Row quyết định số dòng hiển thị mặc định (chiều cao). User vẫn resize được nếu CSS browser cho phép.
  • URL-encode 6 ký tự đặc biệt (+ / ? # & ') bật mặc định — giống Textbox. Xem Textbox để biết chi tiết.

Core Docs · Astro · Core.API/wwwRoot/docs