Terminal TAST

Visibility

Inlines are visible by default, but they have a property called isVisible that allows hiding them.

By Attribute

Visible by default

All Inlines are visible by default. There is no need to add a property.

Explicitly visible

Although all Inlines are visible by default, you can add explicitly isVisible to true. It is helpful if this value may change programmatically, or if you want to explicit that it might change.

Invisble inlines

Hide any Inline by setting isVisible to false. It does not remove the inline but makes it invisible. Note that it affects anything inside it, including newlines.

Programmatively

The attribute isVisible is present in the TAST before adding it to the terminal. Once the terminal shows the TAST content, there is an API that allows showing or hiding Inlines. The available API is:

Note that in the following example, we use the Scope and refs to find the inline ids more quickly.

Toggling with toggleRef

There is an special action with no type that has only one property toggleRef. It toggles a reference by showing and hiding it. It toggles the value of the isVisible.