YOU ARE VIEWING ARCHIVAL DOCUMENTATION FOR ioL VERSIONS 0.9x. Go to doc.iol.science for the latest version.
ioL

Programming manual (doc0.iol.science)



selectable = ...

[This field is available in ioL version 0.91 onwards.]

Text displayed on the screen is selectable by default. This means the user can select content by dragging the mouse over it.

In some cases, this behaviour may interfere with the functionality of a particular user interface. Setting the selectable field to false on a markup element disables this behaviour.

Never use this field to deliberately undermine the user's ability to select blocks of text in your application, as this is widely considered to be poor design. Consider that certain users may have good reason to select text that is displayed by your application. If you really don't want the user to select certain content printed to their ioL terminal, consider whether you should be outputting such content to the user's console at all.

Specifying a boolean value for this field

The selectable field evaluates a single boolean value:

Example

<some-content:box selectable=false>  <! specify that the selectable property is not enabled for this tag. !>

...

<some-content.selectable true>   <! change the field we previously set to enable that property now. !>