Context Variables Summary

This page provides a comprehensive overview of all context variables exposed by XMLUI components. Context variables are values that components make available to their children, accessible using the $variableName syntax.

Available Context Variables

Jump to:


$attempts

Number of status polls made in deferred mode

Used by: 1 component

ComponentDescription
APICallNumber of status polls made in deferred mode

$cell

The specific cell value for this column

Used by: 1 component

ComponentDescription
ColumnThe specific cell value for this column

$colIndex

Zero-based column index

Used by: 1 component

ComponentDescription
ColumnZero-based column index

$completedItems

A list containing the queue items that have been completed (fully processed).

Used by: 1 component

ComponentDescription
QueueA list containing the queue items that have been completed (fully processed).

$context

Contains the context data passed to the openAt() method. This allows menu items to access information about the element or data that triggered the context menu.

Used by: 1 component

ComponentDescription
ContextMenuContains the context data passed to the openAt() method. This allows menu items to access information about the element or data that triggered the context menu.

$data

This property represents the value of the form data. You can access the fields of the form using the IDs in the bindTo property of nested FormItem instances. $data also provides an update method as a shortcut to the Form's exposed update method.

Used by: 1 component

ComponentDescription
FormThis property represents the value of the form data. You can access the fields of the form using the IDs in the bindTo property of nested FormItem instances. $data also provides an update method as a shortcut to the Form's exposed update method.

$elapsed

Time elapsed since polling started in milliseconds

Used by: 1 component

ComponentDescription
APICallTime elapsed since polling started in milliseconds

$error

Error details (available in errorNotificationMessage)

Used by: 1 component

ComponentDescription
APICallError details (available in errorNotificationMessage)

$group

Context variable exposed by the following components. See individual component descriptions for details.

Used by: 2 components

ComponentDescription
ListGroup information when using groupBy (available in group templates)
SelectGroup name when using groupBy (available in group header templates)

This context value represents the header context with props: id (optional), index, label, isActive.

Used by: 1 component

ComponentDescription
TabItemThis context value represents the header context with props: id (optional), index, label, isActive.

$isFirst

Boolean indicating if this is the first item

Used by: 2 components

ComponentDescription
ItemsBoolean indicating if this is the first item
ListBoolean indicating if this is the first item

$isLast

Boolean indicating if this is the last item

Used by: 2 components

ComponentDescription
ItemsBoolean indicating if this is the last item
ListBoolean indicating if this is the last item

$item

Provides access to the current item being rendered in a list or iteration context.

Used by: 5 components

ComponentDescription
AutoCompleteThis context value represents an item when you define an option item template. Use $item.value and $item.label to refer to the value and label of the particular option.
ColumnThe complete data row object being rendered
ItemsCurrent data item being rendered
ListCurrent data item being rendered
SelectRepresents the current option's data (label and value properties)

$itemContext

Provides the removeItem() method for multi-select scenarios

Used by: 1 component

ComponentDescription
SelectProvides the removeItem() method for multi-select scenarios

$itemIndex

Provides access to the current item being rendered in a list or iteration context.

Used by: 3 components

ComponentDescription
ColumnZero-based row index
ItemsZero-based index of current item
ListZero-based index of current item

$overflow

Boolean indicating whether the child component is displayed in the overflow dropdown menu (true) or visible in the main bar (false).

Used by: 1 component

ComponentDescription
ResponsiveBarBoolean indicating whether the child component is displayed in the overflow dropdown menu (true) or visible in the main bar (false).

$param

Context variable exposed by the following components. See individual component descriptions for details.

Used by: 2 components

ComponentDescription
APICallThe first parameter passed to execute() method
ModalDialogFirst parameter passed to the open() method

$params

Context variable exposed by the following components. See individual component descriptions for details.

Used by: 2 components

ComponentDescription
APICallArray of all parameters passed to execute() method (access with $params[0], $params[1], etc.)
ModalDialogArray of all parameters passed to open() method (access with $params[0], $params[1], etc.)

$polling

Boolean indicating if polling is currently active in deferred mode

Used by: 1 component

ComponentDescription
APICallBoolean indicating if polling is currently active in deferred mode

$progress

Current progress 0-100 when in deferred mode (extracted via progressExtractor expression)

Used by: 1 component

ComponentDescription
APICallCurrent progress 0-100 when in deferred mode (extracted via progressExtractor expression)

$queuedItems

A list containing the items waiting in the queue, icluding the completed items.

Used by: 1 component

ComponentDescription
QueueA list containing the items waiting in the queue, icluding the completed items.

$result

Response data (available in completedNotificationMessage)

Used by: 1 component

ComponentDescription
APICallResponse data (available in completedNotificationMessage)

$row

The complete data row object being rendered (the same as $item).

Used by: 1 component

ComponentDescription
ColumnThe complete data row object being rendered (the same as $item).

$rowIndex

Zero-based row index (the same as $itemIndex).

Used by: 1 component

ComponentDescription
ColumnZero-based row index (the same as $itemIndex).

$setValue

Function to set the FormItem's value programmatically

Used by: 1 component

ComponentDescription
FormItemFunction to set the FormItem's value programmatically

$statusData

Latest status response data when in deferred mode (available in event handlers and notifications)

Used by: 1 component

ComponentDescription
APICallLatest status response data when in deferred mode (available in event handlers and notifications)

$validationResult

Current validation state and error messages for this field

Used by: 1 component

ComponentDescription
FormItemCurrent validation state and error messages for this field

$value

Current value of the FormItem, accessible in expressions and code snippets

Used by: 1 component

ComponentDescription
FormItemCurrent value of the FormItem, accessible in expressions and code snippets