Field¶
Class Field
Twig Tag¶
| Tag: | UIField |
|---|---|
| Syntax: |
{% UIField Type {Parameters} %}
Content Goes Here
{% EndUIField %}
| Type: |
|---|
| FromParams | No comment |
| FromObject | No comment |
| Large | No comment |
| Small | No comment |
| Standard | No comment |
Field FromParams¶
| syntax: |
|---|
{% UIField FromParams {aParams:value} %}
Content Goes Here
{% EndUIField %}
| parameters: |
|---|
| aParams | mandatory |
Field FromObject¶
| syntax: |
|---|
{% UIField FromObject {sLabel:'value', oInput:value, sLayout:'value'} %}
Content Goes Here
{% EndUIField %}
| parameters: |
|---|
| sLabel | string | mandatory | ||
| oInput | UIBlock | mandatory | ||
| sLayout | string | optional | NULL |
Field Large¶
| syntax: |
|---|
{% UIField Large {sLabel:'value', sValueHtml:'value'} %}
Content Goes Here
{% EndUIField %}
| parameters: |
|---|
| sLabel | string | mandatory | ||
| sValueHtml | string | optional | ‘’ |
Field Small¶
| syntax: |
|---|
{% UIField Small {sLabel:'value', sValueHtml:'value'} %}
Content Goes Here
{% EndUIField %}
| parameters: |
|---|
| sLabel | string | mandatory | ||
| sValueHtml | string | optional | ‘’ |
Field Standard¶
| syntax: |
|---|
{% UIField Standard {sLabel:'value', sLayout:'value', sId:'value'} %}
Content Goes Here
{% EndUIField %}
| parameters: |
|---|
| sLabel | string | optional | ‘’ | |
| sLayout | string | optional | ‘small’ | |
| sId | string | optional | NULL |
Field common parameters¶
| AddCSSClass | string | CSS class to add to the generated html block |
| AddCSSClasses | array | like <code>[‘ibo-is-hidden’, ‘ibo-alert–body’]</code> |
| AddCssFileRelPath | string | |
| AddDeferredBlock | iUIBlock | |
| AddHtml | string | |
| AddJsFileRelPath | string | |
| AddMultipleCssFilesRelPaths | array | |
| AddMultipleJsFilesRelPaths | array | |
| AddSubBlock | iUIBlock | |
| AttCode | string | |
| AttLabel | string | |
| AttType | string | |
| CSSClasses | array | like <code>[‘ibo-is-hidden’, ‘ibo-alert–body’]</code> |
| Comments | string | |
| DataAttributes | array | Array of data attributes in the format [‘name’ => ‘value’] |
| DeferredBlocks | array | |
| InputId | string | |
| InputType | string | |
| IsHidden | bool | Indicates if the block is hidden by default |
| IsMandatory | bool | |
| IsReadOnly | bool | |
| IsSlave | bool | |
| Label | string | |
| Layout | string | |
| MustChange | bool | |
| MustPrompt | bool | |
| SubBlocks | array | |
| Value | UIBlock | |
| ValueId | string | |
| ValueRaw | string |
| Related Tag: | FieldSet |
|---|
Examples¶
Example to generate a Field
{% UIField Small {sLabel: "Product"} %}
iTop
{% EndUIField %}
The result: