Core Docs

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

FieldVai trò
EventsJSON map {"click": "MethodName"} → wire click handler.
StyleInline CSS style cho button.
FormatEntityFormat entity truyền vào pipeline render PDF.
FocusSearchTrue → focus vào search/preview area khi mở PDF.
PrecisionPrecision setting cho data trong PDF.
UpperCaseTrue → text uppercase trong PDF render.
PlainTextTrue → render plain text version.

Events kích hoạt

EventMethod 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.

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