-
Notifications
You must be signed in to change notification settings - Fork 4
INPUT
Jeff Olajos edited this page Oct 28, 2024
·
57 revisions
<INPUT/> : FormField
The <INPUT/> widget creates an editable text field to take in, edit, update, validate and mask user data. The <INPUT/> widget can be used on its own or as a field within a <FORM/>.
| Name | Type | Default | Description | Req |
|---|---|---|---|---|
| type | string | Shorthand for a mix of mask and validation: |
||
| allow | string | A regex expression which defines allowable input characters | ||
| deny | string | A regex expression which defines restricted input characters | ||
| mask | string | The masking used for formatting typed characters. Uses Flutter Multi Formatter for masking. | ||
| keyboardinput | string | next |
mobile keyboard input action: |
|
| keyboardtype | string | text |
mobile keyboard display type: |
|
| clear | bool | false | Show/Hide the field's clear button | |
| debounce | int | 1000 | Duration in milliseconds where a pause in typing longer that this value, automatically commits the string. When set to 0, the typed value is committed only after the field loses focus | |
| length | int | The max length in characters allowed. | ||
| width | int | 200 | width of the input field. Expands to fill its parent unless the parent had an infinite width in which case the input is limited to 200 pixels. | |
| size | int | 16 | Input font size | |
| lines | int | 1 | The minimum number of lines to display | |
| maxlines | int | The maximum number of lines to display | ||
| dense | bool | false | Set true for a more compact version of the input for small areas | |
| border | string | all | ||
| bordercolor | string | The color of the border | ||
| borderwidth | 1 | The width in pixels of the border | ||
| radius | int | 2 | The corner radius of the border. Applies only for border="all" | |
| hint | string | The hint text to display when empty | ||
| obscure | bool | false | Obscure the input visual (ex: passwords) | |
| icon | string | The prefix icon to display | ||
| halign | string | start | The text alignment within the input. |
|
| padding | int | 2 | The padding around the characters in the field. | |
| color | string | The default text color | ||
| case | string | mixed | The case of the typed text. |
| Name | Values | Default | Description |
|---|---|---|---|
| Name | Description |
|---|---|
| onchange | The string of events executed on value change. |
| onfocus | The string of events executed when the input receives focus. |
| onblur | The string of events executed when the input loses focus. |
| Name | Description |
|---|---|
<FML center="true" layout="column">
<INPUT id="mobile" mask="### ### ####" allow="0-9" keyboardtype="number" width="70%" maxwidth="300" radius="2" value="" hint="Mobile Number, 10 digits, no country code" margin="10"/>
<INPUT id="mobiletype" type="phone" width="70%" maxwidth="300" radius="99" hint="Mobile Number autodetect country" margin="10" />
<INPUT id="Password" type="password" width="70%" maxwidth="300" radius="99" hint="Password" margin="10"/>
</FML>Framework Markup Language is an open source programming language created by AppDaddy Software Solutions Inc. FML and is licensed under a fair source license agreement and is maintained by a community of developers.
- Quick Start
- Widget Structure
- Layout Basics
- Config
- Navigation
- Authentication
- Server Configuration
- Offline Use
- Resource Guides
-
<FML/>
- <BOX/>
- <CHART/>
- <COLUMN/>
- <DRAWER/>
- <FOOTER/>
- <FORM/>
- <GRID/>
- <HEADER/>
- <LIST/>
- <MAP/>
- <WINDOW/>
- <PAGER/>
- <ROW/>
- <SCROLLER/>
- <SPLITVIEW/>
- <STACK/>
- <TABLE/>
- <TABVIEW/>
- <TREEVIEW/>
- <WEBVIEW/>

Important Concepts