UIContentBlock

Class UIContentBlock Base block containing sub-blocks


Output

No output provided yet


Twig Tag

Tag

UIContentBlock

Syntax

{% UIContentBlock Type {Parameters} %}
    Content Goes Here
{% EndUIContentBlock %}
Type

Standard

Make an empty UIContentBlock which can be used to embed anything or to surround another block with specific CSS classes.

ForCode

Used to display a block of code like <pre> but allows line break.

ForPreformatted

Used to display a block of preformatted text in a <pre> tag.

UIContentBlock Standard

syntax

{% UIContentBlock Standard {sId:'value', aContainerClasses:{name:value, name:value}} %}
    Content Goes Here
{% EndUIContentBlock %}
parameters

sId

string

optional

NULL

aContainerClasses

array

optional

array ()

UIContentBlock ForCode

syntax

{% UIContentBlock ForCode {sCode:'value', sId:'value'} %}
    Content Goes Here
{% EndUIContentBlock %}
parameters

sCode

string

mandatory

sId

string

optional

NULL

UIContentBlock ForPreformatted

syntax

{% UIContentBlock ForPreformatted {sCode:'value', sId:'value'} %}
    Content Goes Here
{% EndUIContentBlock %}
parameters

sCode

string

mandatory

sId

string

optional

NULL

UIContentBlock 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

CSSClasses

array

like <code>[‘ibo-is-hidden’, ‘ibo-alert–body’]</code>

DataAttributes

array

Array of data attributes in the format [‘name’ => ‘value’]

DeferredBlocks

array

HasForcedDiv

bool

IsHidden

bool

SubBlocks

array


Examples

No examples provided yet