Language: handlebars
Outputs control wrapper and yields to control.edit or control.display template
{{#template "control" control-type="text" edit=true}}
...
{{/#template}}
NB. It is usually preferable to use control.view template rather than calling this directly
- Source:
- See:
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
controltype |
string | Type of control |
|
edit |
boolean |
<optional> |
Whether control is in edit or display mode |
required |
boolean |
<optional> |
Whether the control is required or optional |
attributes |
object |
<optional> |
Attributes to be passed on to control template |