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
| Field | Vai trò |
|---|---|
FieldName | Property của entity bind vào textarea. |
Row | Số dòng hiển thị mặc định (chiều cao). User vẫn resize được nếu CSS cho phép. |
ShowLabel | True → render <label> cạnh widget. |
UpperCase | True → auto chữ hoa khi blur. |
FormatData | Format hiển thị value. |
FormatEntity | Format toàn bộ entity (template). |
Events | JSON map event → method C# (Change, Input). |
PlainText | True → bỏ URL-encode 6 ký tự đặc biệt (+ / ? # & '), lưu raw. |
ChildStyle | Inline CSS style apply lên <textarea> element. |
Events kích hoạt
| Event | Method signature |
|---|---|
change | (entity, newValue, oldValue, parent) |
input | (entity) |
Tip
Rowquyế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ốngTextbox. Xem Textbox để biết chi tiết.