ButtonPdf
Button preset gọi pipeline xuất PDF từ template.
Source:
Core/Components/ButtonPdf.cs· ComType:ButtonPdf
Cấu hình
ComType: ButtonPdf
Label: Xuất PDF
Icon: fas fa-file-pdf
Field DB dùng
| Field | Vai trò |
|---|---|
Events | JSON map {"click": "MethodName"} → wire click handler. |
Style | Inline CSS style cho button. |
FormatEntity | Format entity truyền vào pipeline render PDF. |
FocusSearch | True → focus vào search/preview area khi mở PDF. |
Precision | Precision setting cho data trong PDF. |
UpperCase | True → text uppercase trong PDF render. |
PlainText | True → render plain text version. |
Events kích hoạt
| Event | Method signature |
|---|---|
click | (entity, guiInfo) |
guiInfo là chính row Component cấu hình button.
Tip
- Dùng khi cần xuất PDF từ template có sẵn. Logic export đặt trong method được wire qua
Events. - Đa-template: dùng MultipleButtonPdf.