Core Docs

DocumentWrite

Render nội dung HTML (template + entity data) inline trong tab — kiểu document viewer.

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

Cấu hình

ComType:    DocumentWrite
FieldName:  Content
Query:      "SELECT Body FROM Template WHERE Id = @Id"
IsRealtime: false

Field DB dùng

FieldVai trò
FieldNameProperty entity bind nội dung HTML.
QueryOData/SQL query lấy template (nếu template từ DB).
FormatEntityFormat entity substitute vào template.
IsRealtimeTrue → re-render khi entity / data đổi (qua observable / WebSocket).
EventsJSON map {"click": "..."}.

Events kích hoạt

EventMethod signature
click(entity)

User click vào nội dung render.

Tip

  • Template = HTML có placeholder {FieldName}, framework substitute từ entity.
  • IsRealtime = true → re-render khi entity đổi (websocket / observable).

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