# j-TextboxList

> j-TextboxList: NEW movable {Boolean} enables changing of position for existing items

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: en
Content-SHA256: 47684939c4f5efcc24d1a01594ac0e3a1f20e8f3d4f1512d4f2ab334ca7df025
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

__Configuration__:

- `icon {String}` icon for label
- `label {String}` label (default `innerHTML`)
- `placeholder {String}` adds a `placeholder` text into the input
- `maxlength {Number}` sets a maximum length of chars
- `disabled {Boolean}` disables this component
- `limit {Number}` sets a maximum length of lists
- `error {String}` error message when a limit is reached (default `You reach the maximum limit`)
- `required {Boolean}` whether a list is required (default `false`)
- `type {String}` can be `email`, `url`, `currency`, `number`, `date`, `lower`, `upper`, `a-z` or empty (default)
- __NEW__ `movable {Boolean}` enables changing of position for existing items

Use it with `<ui-component name="textboxlist">`. When the component is not loaded yet, jComponent downloads it on first use from the address in `DEF.fallback` (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

```html example.html
<ui-component name="textboxlist" path="redirects" config="maxlength:50;type:url;placeholder:e.g. www.totaljs.com and press enter;limit:5;error:Limit is 5 lists;icon:arrow-left">Redirects</ui-component>
<br>
<ui-component name="textboxlist" path="emails" config="maxlength:50;type:email;placeholder:e.g. name@domain.com and press enter;limit:5;error:Limit is 5 lists;icon:envelope-o;">Emails</ui-component>
<br>
<ui-component name="textboxlist" path="empty" config="maxlength:50;required:true;placeholder:e.g. Enter a value and press enter;limit:5;error:Limit is 5 lists;">Required</ui-component>
<br>
<ui-component name="textboxlist" path="empty" config="maxlength:50;required:true;type:number;placeholder:e.g. Enter any number;limit:5;error:Limit is 5 lists;">Required Numbers</ui-component>

<script>
    var redirects = ['www.totaljs.com'];
    var emails = ['name@domain.com', 'invalidemailaddress'];
    var empty = [];
</script>
```
