TextField / Textarea
Input Example
<input
id="customer_street"
type="text"
data-hf-control="TextField"
data-hf-options="{
label: 'Address: Street name'
}"
/>
Textarea Example
<textarea
id="repair_remark"
style="min-height:110px; height:auto"
data-hf-control="TextField"
data-hf-options="{
label: 'Remark'
}"
></textarea>
Note
Please ensure there is no non breaking space or line break between the 'textarea'-opening and closing tag. Otherwise the cursor will not be positioned at the correct place on focus.
FormControl Options​
autoResize​
Set "true" whenever the Textarea should be auto resized on typing.
How to use:
autoResize: true
Type:
boolean
charCounter​
Set "true" whenever the Textarea should display a character counter. It gets updated on every key stroke. The maxlength amount is taken from the validator.
How to use:
charCounter: true
Type:
boolean
defaultValue​
Provide a default text inside your input field. A Custom Code function can be used to set defaultValue.
How to use:
defaultValue: 'Default Text'
Type:
string | function
Signature:
function() => string
disabled​
Set "true" whenever the TextField/Textarea should be disabled.
How to use:
disabled: true
Type:
boolean
displayOnly​
Disables the Textfield and makes it readonly, without input styling.
How to use:
displayOnly: 'true'
Type:
boolean
doNotCopy​
Set "true" whenever the field should get deleted if the Form is copied.
How to use:
doNotCopy: true
Type:
boolean
label​
Define a label for your control element.
How to use:
label: 'Addrees: Street name'
Type:
string
list​
Set this property to "true" if data connected with this control should be a sorting/filtering/grouping option on the ListPage, is used in template objects (eg. the listTemplate) or it should show up in Admin UI listings.
How to use:
list: true
Type:
boolean
listOptions​
Set additional options for controls with list equals true. E.g. set custom label for filter/sort/group dialogs or hide them completely.
How to use:
Type:
{ dialogText: string, dialogHide: boolean }
mask​
Used to give the user an input mask. For more information visit: https://imask.js.org/guide.html.
How to use:
mask: '(000) 000-0000'
Type:
string