This component inserts arbitrary HTML text into the user interface.
Parameters
- text: string | ()=>string – text can be a simple HTML string to be inserted into the UI or it can be a function that returns a string. The function usage allows the text to change with each rendering of the user interface.
Attributes
none
Examples
new TextUI("This is the Home Page"); let count = 0; new TextUI(()=>{ return "count:"+count; });
Styling
- TextUI – default styling for TextUI