Skip to content

@View

Configures how a field is displayed as a column in the list table, including the column title, width, display type, sorting, and more.

Attributes

AttributeDescription
titleColumn header title
descColumn description
typeData display type, defaults to AUTO, see the type table below
showWhether to display the column, defaults to true
sortableWhether clicking the column header sorts the table, defaults to false
exportWhether to include in Excel exports, defaults to true
widthColumn width with unit, e.g. 200px, 20%
columnWhen the field is an object type, specifies the property name to display (commonly used with @ManyToOne)
classNameCSS class name applied to the column
tplOpens a custom template in a popup; the row variable is available inside the template to access current row data
ifRenderDynamically controls whether the column is rendered (ExprBool), see ifRender Dynamic Rendering
templateColumn value formatting template (a JS expression evaluated by eval on the frontend); available variables: value (current cell value), item (full row data), item.xxx (specific column value)

Display Types (ViewType)

Text & Number10

AUTOAutomatically inferred from the @Edit type or field type
AaTEXTPlain text
🛡️SAFE_TEXT1.12.11+Text containing scripts or tags is not rendered, preventing XSS
42NUMBERNumeric display
BOOLEANBoolean value display
COLORRenders a hex color value as a color swatch; inferred automatically when the edit type is COLOR
••••PASSWORD2.0.4+Password mask; the actual value is replaced with a placeholder and never sent to the client
📅DATEDate formatted display
🕐DATE_TIMEDate-time formatted display
PROGRESS2.0.4+Progress bar; when the edit type is SLIDER the max value comes from SliderType.max, otherwise 100

Image & Media5

🖼️IMAGEImage
🖼️IMAGE_BASE64Base64-encoded image
QR_CODEQR code
📍MAPMap display
SWFFlash animation

Link & Attachment5

🔗LINKOpens a link in a new window
🔗LINK_DIALOGOpens a link in a dialog
⬇️DOWNLOADDirect download
📎ATTACHMENTOpens an attachment in a new window
📎ATTACHMENT_DIALOGOpens an attachment in a dialog

Rich Content5

</>HTMLRenders an HTML fragment
📱MOBILE_HTMLRenders HTML at mobile screen dimensions
{ }CODESyntax-highlighted code display
M↓MARKDOWNRendered Markdown display
TAB_VIEWOne-to-many / many-to-many sub-table display

Contributors

The avatar of contributor named as YuePeng YuePeng
The avatar of contributor named as Claude Opus 5 (1M context) Claude Opus 5 (1M context)

Changelog

Released under the Apache-2.0 License.