YOU ARE VIEWING DOCUMENTATION FOR ioL v.1. Click here for documentation for older v.0.9x versions of ioL.
ioL

Programming manual (doc.iol.science)



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:

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. !>