Skip to content
npm

AI: Canonical properties reference

This is the authoritative property reference for AI JSON generation. Only properties listed here are supported. Do not invent or guess properties not found in this document.


Base properties (all elements)

Every element must have these three fields:

json
{
  "name": "fieldName",
  "label": "Field Label",
  "type": "text"
}

Additional base properties available on all element types:

PropertyTypeDescription
descriptionstringSubtitle or help text shown below the label
hiddenbooleanStatically hides the element
widthstringWidth (e.g. "100%", "300px")
tabletWidthstringWidth on tablet
mobileWidthstringWidth on mobile
dependsOnstring[]Limit expression recalculation to these field names
logicExecutionMode"onBlur" | "onChange" | "onInput"When logic/expression is re-evaluated
validationExecutionMode"onBlur" | "onChange" | "onInput"When validators are re-evaluated
status"default" | "readonly"Interaction status override
labelTooltipstringTooltip shown on label hover
fitContentbooleanWidth fits content

Logic fields (element level only, never inside validators)

These fields accept JEXL expressions using {fieldName} placeholder syntax.

FieldReturn typeBehavior
visibleIfbooleanElement visible when true
disableIfbooleanElement disabled when true
requireIfbooleanElement required when true
readonlyIfbooleanElement readonly when true
resetIfbooleanElement value cleared when true
expressionanyResult is set as element value; also for setElementProperty calls

All logic fields must contain valid JEXL expressions only.

There is no hideIf, and no readOnlyIf with a capital O. These six keys are the entire list and they are matched exactly. Anything else is an ordinary property as far as the runtime is concerned: it is stored, it is never evaluated, and no dependency is registered for it. What you get is a form that looks correct in the JSON and does nothing at all, with no error anywhere to point at. Write the visible condition rather than the hidden one, because visibleIf states when the element is shown, so a hide condition has to be inverted, not renamed.

Execution mode

FieldDefaultBehavior
logicExecutionModeonBlurWhen the logic fields above are re-evaluated
validationExecutionModeonBlurWhen validators are re-evaluated

Both fall back to onBlur when the property is missing, so logic only re-runs after the field loses focus. To anyone typing in the form that reads as broken logic, so set onChange on every element whose logic or validation has to follow the typing, unless another mode was asked for.


Static state fields

FieldTypeDescription
requiredbooleanAlways required
disabledbooleanAlways disabled
readOnlybooleanAlways read-only

Validators

validators is an array of IValidator objects. Exact interface:

typescript
interface IValidator {
  type?: string;         // validator type (required)
  message?: string;      // error message shown to user
  value?: string | number; // threshold (minLength, maxLength, min, max, minDate, maxDate)
  condition?: string;    // JEXL, the FAILING check; error shown while this evaluates to true
  applyIf?: string;      // JEXL, validator runs only when this is truthy
}

Forbidden inside validators: expression, visibleIf, requireIf, disableIf, readonlyIf, resetIf.

json
{
  "validators": [
    { "type": "minLength", "value": 3, "message": "At least 3 characters" },
    { "type": "maxLength", "value": 100, "message": "Too long", "applyIf": "notEmpty({name})" },
    { "type": "min", "value": 0, "message": "Cannot be negative" },
    { "type": "max", "value": 999, "message": "Too large" },
    { "type": "minDate", "value": "today", "message": "Cannot be in the past" },
    { "type": "maxDate", "value": "today", "message": "Cannot be in the future" }
  ]
}

Events / Actions

events is an array of IElementActionConfig objects. Key fields:

FieldTypeValues / Notes
triggerstringclick submit input change blur focus beforeLoad onLoad afterLoad always. Prefer a named trigger; always skips trigger filtering entirely and is only for host elements whose events are not gestures (a router outlet's activate/deactivate), so on a normal element it fires on load and on every gesture.
typestringnavigate dataSource setValue setOptions reloadElements toast dialog validate submit
labelstringButton label (when rendered as action button)
iconstringIcon name
conditionstringJEXL, action runs only when truthy
validateFormbooleanValidate before executing
confirmEnabledbooleanShow confirmation dialog before action
confirmTitlestringConfirm dialog title
confirmMessagestringConfirm dialog body

By action type:

navigate: navigateTo (URL/route), openInNewTab (boolean)

dataSource: dataSourceName, responseMode (none download setValue), responseDataPath, responseTargetElement, reloadCurrentElementAfterSuccess, reloadOnReturnElementNames

toast: toastTitle, toastMessage, toastVariant (error warning info success), toastPosition (top-left top-center top-right bottom-left bottom-center bottom-right), toastAutoHide, toastAutoHideMs

dialog: dialogName, dialogOperation (open close toggle)

setValue: setValueTargetPath, setValueMode (contextPath template json), setValueValue

setOptions: setOptionsTargetElement, setOptionsMode (contextPath template json), setOptionsValue

reloadElements: reloadElementNames (comma-separated)

validate: no extra fields. Validates the whole form and shows field errors, same as the built-in Validate toolbar button

submit: no extra fields. Validates the form, then fires onComplete with { isValid, data, issues }, same as the built-in Submit toolbar button

Button appearance for action: buttonVariant (filled outlined text), buttonTone (primary risk neutral), hideText, useCustomButtonStyle


Per-type additional properties

text

PropertyTypeNotes
placeholderstring
minlengthnumber
maxlengthnumber
showMaxLengthCounterbooleanShow counter when maxlength is set
patternstringRegex pattern
maskTypestringExactly: none phoneIntl date time dateTime digits custom. No other mask names exist
maskPatternstringCustom mask (when maskType is custom)
inputModestringtext search email tel url numeric decimal
spellcheckboolean
autocompletestringBrowser autocomplete hint
requiredMessagestringCustom required error message

textarea

Same as text plus:

PropertyTypeNotes
rowsnumberVisible row count

number

PropertyTypeNotes
placeholderstring
minnumberMinimum value
maxnumberMaximum value
stepnumberIncrement step
inputModestringnumeric decimal
valueStorageTypestringnumber (default) or string
visualFormatEnabledbooleanEnable visual number formatting
visualFormatLocalestringLocale for formatting (e.g. "lt-LT")
visualFormatUseGroupingbooleanThousands separator
visualFormatMinFractionDigitsnumber
visualFormatMaxFractionDigitsnumber
requiredMessagestring

datepicker

Exact type string: "datepicker" (all lowercase)

PropertyTypeNotes
placeholderstring
pickerModestringdate (default) or datetime
includeSecondsbooleanFor datetime mode
formatstringOutput format. Exactly one of "" (locale) YYYY-MM-DD DD/MM/YYYY MM/DD/YYYY DD.MM.YYYY YYYY/MM/DD custom. Lowercase Angular-style patterns such as yyyy-MM-dd are not valid
customFormatstringThe pattern used when format is custom
minValuestringMin selectable date (JEXL or static)
maxValuestringMax selectable date (JEXL or static)
requiredMessagestring

dateRange

PropertyTypeNotes
placeholderstring
formatstring
minValuestring
maxValuestring
requiredMessagestring

Value shape: { "dateFrom": "YYYY-MM-DD", "dateTo": "YYYY-MM-DD" }

select / multiSelect / radio / checkbox / autocomplete

PropertyTypeNotes
placeholderstringReal on autocomplete, listBox, selectButton. On select / multiSelect it sets only the search box hint inside the open dropdown, and only when showSearch is on; the closed-state "Select..." text comes from the UI translation select.placeholder / multiSelect.placeholder, not from this property
optionsIOption[]Static options: [{ "value": "x", "label": "X" }]
dataSourceIElementDataSourceDynamic options from datasource
showSearchbooleanSearch box in dropdown (select)
strictOptionsbooleanValue must be from options list
filterIfEqualstringFilter options when datasource field equals value
filterIfNotEqualstringFilter options when datasource field not equals value
optionTemplatestringInline HTML template for each option
optionTemplateNamestringTemplate name reference
showInlinebooleanLay the choices out in a row (radio, checkbox)
requiredMessagestring

Value shapes:

  • select / radio / autocomplete: single value
  • multiSelect / checkbox: array

singleCheckbox / toggleSwitch / toggleButton

Value shape: boolean

PropertyTypeNotes
checkboxLabelstringText rendered next to the box (singleCheckbox). label is the field label above it; for a bare checkbox row set label to "" and put the wording here
checkedValueanyValue when checked (toggleButton only)
uncheckedValueanyValue when unchecked (toggleButton only)

singleCheckbox has no checkedValue / uncheckedValue. It always stores true / false.

phoneInput

PropertyTypeNotes
placeholderstring
defaultCountryCodestringISO code of the preselected country: LT LV EE PL DE SE NO DK FI GB IE US
allowedCountryCodesstring[]Restrict the country dropdown to these ISO codes
maxlengthnumber
autocompletestring
requiredMessagestring

phoneInput has its own country dropdown. It has no maskType, maskPattern or inputMode, and the dial code is not set via defaultValue.

button

PropertyTypeNotes
textstringButton text
iconstringIcon name
iconPositionstringleft right top bottom
iconOnlybooleanShow icon only
variantstringsolid outline text
tonestringprimary neutral success info warning risk
sizestringsmall normal large
loadingbooleanShow loading spinner
badgestringBadge text
eventsIElementActionConfig[]Primary click actions
menuActionsIElementActionConfig[]Dropdown menu actions

fileUpload

PropertyTypeNotes
acceptstringAccepted MIME types or extensions, e.g. .pdf,image/*
multiplebooleanAllow multiple files
maxFilesnumberMax number of attached files (default 5)
maxFileSizeMbnumberMax file size in megabytes, not bytes
uploadDataSourceName / downloadDataSourceName / deleteDataSourceNamestringNames of REST data sources; empty uploadDataSourceName means files never leave the browser (local metadata only)
uploadFormFieldNamestringmultipart/form-data field name for the file (default file). Upload always sends single-field FormData, never JSON/base64
fileKeyField / fileNameField / fileTypeField / fileSizeFieldstringField names read from the server's response object (defaults key, name, contentType, size; the older fil_key/fil_name/fil_content_type/fil_size names are still recognized as fallback aliases)

Value shape: the upload response object stored verbatim (or an array of them when multiple), keyed under the element's name, never file bytes/base64. Full request/response wire contract: File upload requests.

page

The complete list. A page element accepts nothing else.

PropertyTypeNotes
namestringMust match the pages[*].name entry
labelstringPage / step title
descriptionstringSubtitle
type"page"Required
hideHeaderbooleanHide the page title block
removeBackgraundbooleanDrop the page background. Spelled exactly like this, the typo is part of the schema
pageBackgroundColorstring
pagePaddingstring
mobilePaddingstring
visibleIf / disableIf / readonlyIfstringJEXL

A page's children are not listed here. They live in pages[*].rows; see Layout model.

panel

PropertyTypeNotes
headerTemplatestringInline HTML for panel header
headerTemplateNamestringTemplate name reference
maxHeightstringMax panel height
panelPaddingstringInternal padding
mobilePaddingstringMobile padding
panelRadiusstringBorder radius
panelShadowstringBox shadow CSS
showBorderbooleanShow panel border
panelBorderWidthstringBorder width (when showBorder)
panelBorderColorstringBorder color (when showBorder)
panelBackgroundColorstringBackground color
titleUnderlinebooleanShow underline below title
contentJustifystringFlexbox justify: flex-start center flex-end space-between space-around space-evenly
contentAlignstringFlexbox align: flex-start center flex-end stretch
contentGapstringGap between child elements
titleUnderlineColorstringUnderline color (when titleUnderline)
titleUnderlineWidthstringUnderline thickness (when titleUnderline)
resetChildrenOnHidebooleanClear descendant field values when the panel becomes hidden

A panel never lists its children. There is no rows, columns, children, elements or items property on panel. Child fields are attached in the layout tree, on the column that references the panel. See Layout model.

dynamicPanel

Same as panel plus repeatable container behavior (addRowButtonText, removeRowButtonText, emptyMessage, disallowAddRows, disallowDeleteRows, maxRows, confirmRowDeletion, hideHeader). Value shape: array of objects. Children are attached the same way as for panel, via column.rows.

dynamicTable

PropertyTypeNotes
emptyMessagestringMessage when no rows
addRowButtonTextstringAdd row button label
itemsPathstringData path for pre-populating rows
disallowAddRowsboolean
disallowDeleteRowsboolean
maxRowsnumber
confirmRowDeletionboolean
confirmDeleteTitlestring
confirmDeleteMessagestring
confirmDeleteConfirmLabelstring
confirmDeleteCancelLabelstring
hideRowIfstringJEXL, hides individual rows
columnsIDynamicTableColumn[]Column definitions
dataSourceIElementDataSourcePre-populate from datasource

Column-level totals:

PropertyTypeNotes
columns[*].useTotalsbooleanSum in the footer row, also published to data
columns[*].totalToDatabooleanPublish the sum without a footer row

A published sum lands in the data as <table>.<column>-total, for example el4.column1-total, and is read in expressions as {el4.column1-total}. Inside a dynamic panel the key carries the entry index: el1[0].el5.column3-total.

Value shape: array of objects.

table

columnsConfig entries use key (NOT name). Minimum column:

json
{
  "key": "firstName",
  "label": "First Name",
  "showInTable": true
}

Column type values the builder offers: text, date, dateTime, number, and element. The renderer still understands boolean html status toggleSwitch singleCheckbox so older structures keep working, but do not author new columns with them; use element with the matching elementType instead.

date, dateTime, and number format the raw value in place, no template or cell element needed:

json
{
  "key": "created",
  "label": "Created",
  "type": "dateTime",
  "dateIncludeSeconds": true,
  "showInTable": true
}
PropertyTypeNotes
formatLocalestringlt-LT, en-US. Empty follows the view locale
dateFormatPatternstringyyyy-MM-dd HH:mm:ss. Tokens yyyy yy MM dd HH hh mm ss SSS a. Wins over the locale format
dateIncludeSecondsbooleandateTime only
numberMinFractionDigitsnumberDecimal places, minimum
numberMaxFractionDigitsnumberDecimal places, maximum
numberUseGroupingbooleanThousands separator, defaults to true

A column of type: "element" renders a real element in every row:

json
{
  "key": "status",
  "label": "Status",
  "type": "element",
  "showInTable": true,
  "elementType": "select",
  "element": {
    "options": [{ "label": "New", "value": "new" }, { "label": "Done", "value": "done" }],
    "events": [
      { "trigger": "change", "type": "dataSource", "dataSourceName": "saveStatus",
        "params": [
          { "name": "id", "value": "{row.id}" },
          { "name": "status", "value": "{value}" }
        ] }
    ]
  }
}

elementType is the element type id (select, button, badge, datepicker, progressBar, customHtml, richTextViewer, and so on). Use richTextViewer when the row field already holds HTML and only needs rendering. element is that element's own configuration, the same keys it would have as a page element. Inside it, {row.*}, a bare sibling field name, {index}, and {value} all resolve against the row the cell belongs to.

PropertyTypeNotes
columnsConfigITableColumnConfig[]Column definitions, use key not name
columnsConfig[*].elementTypestringElement type rendered in the cells, when type is element
columnsConfig[*].elementobjectConfiguration of that hosted element (options, dataSource, events, validators)
dataSourceIElementDataSourceThe table's source, for both client-side and server-side tables. With lazyLoad: false it must return all rows in one response; with lazyLoad: true it must accept the TABLE-POST paging/filter contract below
tableDataSourceNamestringLegacy server-side binding, still read for older structures. New structures put the source in dataSource
lazyLoadbooleantrue = server-side paging/sort/search per request; false = load everything once
tableItemsPath / tableTotalPathstringResponse paths for rows / total count, both optional. Common shapes (items/data/results/rows, total/totalCount/totalRecords/count/cnt) are auto-detected
pageSizenumberDefault page size
rowActionsITableRowActionConfig[]Row action buttons. These go through the generic action/data-source pipeline, not this contract

Do not use ITableDataSourceConfig. It exists in the type definitions but is dead code, never wired to anything; the real per-table binding is the flat tableDataSourceName/tableItemsPath/tableTotalPath trio above.

When lazyLoad: true and the data source's method is the literal string TABLE-POST (sent over the wire as a real POST), NGX View Builder auto-merges the current page/sort/search state into the request body:

json
{
  "pagingParams": { "cnt": null, "orderClause": "lastName DESC", "pageSize": 25, "skipRows": 50, "totalCountUsed": false },
  "params": [ ["tenantId", "42"] ],
  "extendedParams": [
    { "paramName": "quickSearch", "paramValue": { "condition": "%-%", "value": "acme" } },
    { "paramName": "status", "paramValue": { "condition": "=", "value": "active" } }
  ]
}

condition values: %-% contains, !%-% not contains, %- starts with, -% ends with, =/!= equals/not equals, >/>=/</<= for numbers and dates. Full contract, response shape, row-action/inline-edit context, and export behavior: Table: server-side paging & filtering.

tabs / tabsPro

Contains named tab sections. Child rows assigned via column.tabRows.

accordion

Collapsible sections with label per panel.

dialog

Modal element. Configure via settings.dialog* fields:

SettingNotes
settings.renderMode"dialog"
settings.dialogTitleDialog title
settings.dialogDescriptionSubtitle
settings.dialogWidthWidth
settings.dialogShowCloseButtonboolean
settings.dialogPaddingCSS padding
settings.dialogMaxWidthMax width
settings.dialogMaxHeightMax height

richText / richTextViewer

Value shape: string (HTML).

messageCard

PropertyTypeNotes
tonestringprimary success warning risk neutral info
iconstringIcon name
textstringCard message text

statsCard

PropertyTypeNotes
valuestringMain numeric/text value
trendstringTrend direction
trendValuestringTrend amount

badge

PropertyTypeNotes
textstringBadge content
tonestringprimary success warning risk neutral info

image

PropertyTypeNotes
srcstringImage URL or JEXL expression
altstringAlt text
objectFitstringCSS object-fit

icon

PropertyTypeNotes
iconstringIcon name
sizestringIcon size
tonestringColor tone

divider

No additional properties beyond base.

spacer

PropertyTypeNotes
heightstringSpacer height

pageTitle

PropertyTypeNotes
titlestringHeading text
subtitlestringSubheading text
PropertyTypeNotes
itemsarrayBreadcrumb items

iframe

PropertyTypeNotes
srcstringSource URL
heightstringFrame height
scrollingboolean

slider

PropertyTypeNotes
minnumber
maxnumber
stepnumber
valueStorageTypestringnumber or string

numberStepper

PropertyTypeNotes
stepnumberIncrement/decrement step
minnumberMin value
maxnumberMax value

Value shape: number.

timePicker

PropertyTypeNotes
placeholderstring
minuteStepnumberMinute increment shown in the picker

Value shape: time string.

signaturePad

PropertyTypeNotes
canvasHeightnumberCanvas height in px
clearLabelstringClear button label
strokeColor / strokeWidth / backgroundColorstring / number / stringDrawing style
exportFormatstringpng or jpeg

Value shape: signature image data (per exportFormat), keyed under the element's name.

listBox

PropertyTypeNotes
selectionModestringsingle or multiple
dataSourceIElementDataSourceOptions from a datasource
optionsarrayStatic options
maxHeightnumberList height in px

Value shape: single value (selectionMode: "single") or array (selectionMode: "multiple").

selectButton

PropertyTypeNotes
multiplebooleanAllow selecting more than one option
allowEmptybooleanAllow deselecting to no value
variantstringbuttons or segmented
orientationstringhorizontal or vertical
sizestringsmall normal large
tonestringprimary neutral success info warning risk

Value shape: single value, or array when multiple is true.

progressBar

PropertyTypeNotes
min / maxnumberValue bounds
expressionstringComputes the current value
dataSource / progressDataPath / progressValuePath / progressMaxPath-Drive the value from a datasource
displayTypestringlinear or circular
valueLabelModestringpercent value fraction

Value shape: number (0 to max, default 100).


ISettings fields

Only include settings actually needed by the form.

FieldTypeNotes
languagestringRequired. E.g. "en", "de"
localestringE.g. "en-US", "lt-LT"
widthstringForm width
widthUnit"px" | "%"
renderMode"page" | "dialog"
theme"light" | "dark"
pageNavigationMode"default" | "stepper"
allowStepWithoutValidationboolean
pageNavigationPosition"top" | "bottom" | "both" | "none"
stepperPosition"top" | "bottom" | "both" | "none"
actionButtonsPosition"top" | "bottom" | "both" | "none"
showSubmitButtonboolean
showValidateButtonboolean
showValidationIssuesModalboolean
elementSpacingstringGap between rows
customCssstringRaw CSS injected
lazyElementRenderingbooleanLazy-render off-screen elements

IDataSource fields (top-level dataSources array)

{ name, title, type, params }. type is one of rest local route websocket, and params is a plain object whose keys depend on that type.

json
{
  "dataSources": [
    { "name": "ds1", "title": "List", "type": "rest",
      "params": { "url": "/api/items", "method": "GET" } },

    { "name": "ds2", "title": "Save", "type": "rest",
      "params": { "url": "/api/items/{id}", "method": "PUT", "body": { "name": "{el1}" } } },

    { "name": "ds3", "title": "Paged table", "type": "rest",
      "params": { "url": "/api/items/search", "method": "TABLE-POST" } },

    { "name": "ds4", "title": "Static list", "type": "local",
      "params": { "localMode": "json", "dataJson": "[{\"id\":1,\"name\":\"A\"}]" } },

    { "name": "ds5", "title": "From form data", "type": "local",
      "params": { "localMode": "dataPath", "dataPath": "el9.items" } },

    { "name": "ds6", "title": "Route data", "type": "route",
      "params": { "routeDataKey": "record", "routeDataPath": "data" } },

    { "name": "ds7", "title": "Live feed", "type": "websocket",
      "params": { "url": "wss://host/feed", "protocols": "", "message": "{}",
                  "messagePath": "payload", "messageMode": "pushValuesInArray" } }
  ]
}
typeparams keys
resturl (required), method (GET POST PUT PATCH DELETE, or TABLE-POST for a lazy table), body (alias payload)
locallocalMode (json or dataPath), then dataJson (a JSON string) and dataFunction, or dataPath
routerouteDataKey, routeDataPath
websocketurl, protocols, message, messagePath, messageMode (replaceCurrent or pushValuesInArray)

URL and body templates use single braces: {el1}, {row.id}, {__variables.tenantId}.


IElementDataSource (element-level dataSource field)

json
{
  "dataSource": {
    "name": "loadCities",
    "useFor": "option",
    "optionValue": "id",
    "optionLabel": "name",
    "refreshPaths": ["countryField"],
    "params": [{ "name": "country", "value": "{countryField}" }]
  }
}
FieldTypeNotes
namestringReferences a top-level dataSource name
useFor"option" | "value"Whether datasource feeds options or element value
optionValuestringProperty path for option value
optionLabelstringProperty path for option label
filterOptionsBystringJEXL expression using item.* to filter options
paramsIDataSourceParamMapping[][{ "name": "key", "value": "{field}" }]
refreshOnChangebooleanRe-fetch when any dependency changes
refreshPathsstring[]Re-fetch only when these fields change

Canonical type string list

text | textarea | number | slider | phoneInput | fileUpload | button | numberStepper | signaturePad
select | multiSelect | radio | checkbox | singleCheckbox | toggleSwitch | toggleButton | autocomplete | selectButton | listBox
datepicker | dateRange | timePicker
panel | dynamicPanel | tabs | tabsPro | accordion | dialog | splitter | progressFlow | emptyBlock
dynamicTable | table | listGrid | chart
richText | richTextViewer | customHtml | htmlSnippet | image | video | iframe | avatar | icon | routerOutlet
divider | spacer | breadcrumbs | pageTitle | badge | messageCard | statsCard | toast | progressBar
page

Type strings are exact and case-sensitive. Never alter capitalization.