visible = ...
Specifies whether this markup element should currently be rendered to the screen, or hidden from the user. Markup elements are visible to the user by default.
It is often useful to hide content-heavy elements, such as tables, to prevent ioL from attempting to render them until all the content is in place.
This allows the complete content of the element to display faster in certain circumstances, improving overall performance, since ioL does not need to render each content element inside as it is added — it can render the whole thing in one go.
This can be done by setting the visible field to false initially, then setting it back to true after assigning all the content.
Specifying a boolean value for this field
The visible field evaluates a single boolean value:
- true: the visible property is enabled for this tag
- false: the visible property is disabled for this tag
Example
<some-content:box visible=false> <! specify that the visible property is not enabled for this tag. !> ... <some-content.visible true> <! change the field we previously set to enable that property now. !>