Module for inline texts. This module is for creating special texts. e.g., text that has links only to parts of it.
Generate a Text with given text.
Append class attribute.
Append id attribute.
Set "role" value for WAI-ARIA.
Set "aria-*" value for WAI-ARIA.
e.g., setAria "required" "true" stands for "aria-required" is "true".
Set boolean "aria-*" value for WAI-ARIA.
i.e.,
setBoolAria name True is equal to setAria name "true"setBoolAria name False is equal to setAria name "false"Generate Nothing.
It can be used to realize Texts only displayed under certain conditions, as shown below.
In most cases, a function such as when will suffice, though.
fromTexts
[ case mtext of
Just t ->
text t
Nothing ->
none
]
Representing a text.