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.0You 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
Property | Description | Type | Default | Version |
---|---|---|---|---|
widget_props | Properties to pass to the widget | object | - | - |
Widget props
Property | Description | Type | Default | Version |
---|---|---|---|---|
showCount | Whether to show the character count | boolean | - | - |
prefix | Prefix to display before the value | string | - | v2.40.0 |
suffix | Suffix to display after the value | string | - | v2.40.0 |