41 lines
719 B
HTML
41 lines
719 B
HTML
---
|
|
id:
|
|
type: 'string'
|
|
class:
|
|
type: 'string'
|
|
default: 'form-control'
|
|
placeholder:
|
|
type: 'string'
|
|
default: ''
|
|
required:
|
|
type: 'bool'
|
|
default: false
|
|
name:
|
|
type: 'string'
|
|
default: ''
|
|
value:
|
|
type: 'string'
|
|
default: ''
|
|
attributes:
|
|
type: 'string'
|
|
default: ''
|
|
maxlength:
|
|
type: 'integer'
|
|
default: 2048
|
|
minlength:
|
|
type: 'integer'
|
|
default: 0
|
|
---
|
|
<textarea
|
|
id="{{ id | escape_once }}"
|
|
name="{{ name | default: id | escape_once }}"
|
|
{{ required | value_if: 'required' }}
|
|
{{ attributes }}
|
|
placeholder="{{ placeholder | escape_once }}"
|
|
class="{{ class }}"
|
|
{%- if minlength != 0 -%}
|
|
minlength="{{ minlength }}"
|
|
{%- endif -%}
|
|
maxlength="{{ maxlength }}"
|
|
>{{- value -}}</textarea>
|