j-Textarea
- NEW supports hidden scrollbar
Configuration:
required {Boolean}(optional) enables "required" (default:false)icon {String}(optional) icon for the label withoutti-e.g.home,cog, etc.label {String}(optional) label (defaultinnerHTML)autofocus {Boolean}(optional) focuses the input (default:false)placeholder {String}(optional) adds aplaceholdertext into the inputmaxlength {Number}(optional) sets a maximum length of charsdisabled {Boolean}(optional) disables this componentheight {Number}(optional) a maximum height for the inputerror {String}(optional) adds anerrortext under the inputmonospace {Boolean}(optional) setsmonospacefont for the input (default:false)readonly {Boolean}optional, defaultfalsescrollbar {Boolean}optional, defaulttrue
Use it with <ui-component name="textarea">. 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.
<div>
<ui-component name="textarea" path="form.body" config="required:true;icon:pencil;scrollbar:false">Body</ui-component>
<br />
<ui-component name="textarea" path="form.note" config="placeholder:Internal note">Note</ui-component>
</div>
<script>
var form = {};
form.body = 'Hello';
form.note = '';
</script>