This is the basic text box form control. It extends the [BaseFormControl] module:alfresco/forms/controls/BaseFormControl and supports the standard form control configuration. It addition it supports the additional configuration attribute placeHolder that can be used to assign place holder text when no value has been specified.
The following additionalCssClasses are built in and can be included if required:
- biggerBolder: The TextBox is rendered with a bigger, bold font
- radius: The TextBox is given radius corners
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Mixes In
Members
-
autocomplete :string
-
Whether to enable autocomplete on the textbox. Be aware that this can cause issues in two ways. Firstly, change events are not reliably fired by browsers when they autofill fields. Secondly, it may cause problems if set to true on textbox sub-components which would normally verify user-inputs and control them. The default (null) will leave the autocomplete as "off", as per the Dojo defaults.
NOTE: Although one would normally override this with a setting of "on", consideration should be given to instead using a more suitable HTML5-accepted value, such as "username" or "email". A full list of the possible values can be found on the WHATWG reference page and further explanation of many of them is available on the MDN input page.
Type:
- string
- Since:
- 1.0.45
- Default Value:
- null
- Source:
-
cssRequirements :Array
-
An array of the CSS files to use with this widget.
Type:
- Array
- Source:
-
placeHolder :string
-
The placeholder to be used (will use native HTML5 if available).
Type:
- string
- Default Value:
- null
- Source:
Methods
-
createFormControl()
-
- Source:
-
getWidgetConfig()
-
- Source: