CxJS

Text

import { Text } from 'cx/widgets'; Copied

The Text component renders dynamic text content with data binding support. Use it when you need to display text values from the store.

<LabelsLeftLayout>
  <TextField value={m.name} label="Name:" placeholder="Enter your name" />
  <Text value={m.name} />
</LabelsLeftLayout>

Configuration

PropertyTypeDescription
valuestringText value to display. Supports data binding.
bindstringStore path containing the text value. Equivalent to value={bind("path")}.
tplstringTemplate string. Equivalent to value={tpl("template")}.
exprstringExpression string. Equivalent to value={expr("expression")}.