Skip to content

Char

This component is used with char fields.

Showing the character count

<field name="description" widget_props="{'showCount': true}" />
Username:
0 / 15

Adding a suffix or prefix

v2.40.0

You can add a prefix or suffix to the value of the field.

<field name="power" widget_props="{'suffix': 'kW'}" string="Power"/>
Power:
kW

API

Extends Field API

PropertyDescriptionTypeDefaultVersion
widget_propsProperties to pass to the widgetobject--

Widget props

PropertyDescriptionTypeDefaultVersion
showCountWhether to show the character countboolean--
prefixPrefix to display before the valuestring- v2.40.0
suffixSuffix to display after the valuestring- v2.40.0