|
|
# HtmlBox
|
|
|
The HtmlBox corona allows displaying styled text content. The HTML content displayed by the corona can be either provided via an external HTML file or be set by an InformationProvider.
|
|
|
## shape
|
|
|
The **mandatory** `<shape>` tag specifies the geometric [shape](bootstrapping/common/shape) to be used as a background for the styled text content.
|
|
|
|
|
|
### fillColour
|
|
|
The **optional** `<fillColour>` tag specifies the [colour](bootstrapping/common/colour) to be used to fill the shape. If omitted, the fill colour will be set to white.
|
|
|
|
|
|
### strokeColour
|
|
|
The **optional** `<strokeColour>` tag specifies the [colour](bootstrapping/common/colour) to be used to fill the shape.
|
|
|
|
|
|
### strokeWidth
|
|
|
The **optional** `<strokeWidth>` tag specifies the width of the stroke used to draw the outline of the shape using the colour specified by the `<strokeColour>` tag.
|
|
|
|
|
|
### page
|
|
|
The **optional** `<page>` tag specifies the path of a HTML file to be rendered inside the corona.
|
|
|
|
|
|
### styleSheet
|
|
|
The **optional** `<styleSheet>` tag allows customizing the styles being used for rendering the HTML content. The `<styleSheet>` tag groups individual `<rule>` tags.
|
|
|
|
|
|
### rule
|
|
|
The `<rule>` tag specifies a number of style properties to be applied when rendering the HTML content. The following example for instance, defines that *paragraphs* (`<p>`) are to be rendered in Blue color and bold style.
|
|
|
|
|
|
```
|
|
|
<styleSheet>
|
|
|
<rule>p { color: #000080; font-size: 1.0em; font-style: bold; }</rule>
|
|
|
</styleSheet>
|
|
|
``` |
|
|
\ No newline at end of file |