HTMLTable
The component for adding tables with HTML data.
Declaration
object HTMLTableProperties
| Name | Type | Description |
|---|---|---|
html Required | string | The HTML for the table. This HTML must begin with |
role Required | string | Always |
anchor | Anchor | An object that defines vertical alignment with another component. |
animation | (ComponentAnimation | string("none")) | An object that defines an animation to be applied to the component. The |
behavior | (Behavior | string("none")) | An object that defines behavior for a component, like Parallax or Springy. The |
conditional | (ConditionalComponent | [ConditionalComponent]) | An instance or array of component properties that can be applied conditionally. |
hidden | boolean | A Boolean value that determines whether the component is hidden. |
identifier | string | An optional unique identifier for this component. If used, this |
layout | (ComponentLayout | string) | An inline If |
style | (ComponentStyle | string | string("none")) | An inline The |
Discussion
To add a table with HTML data, create a component with a role of htmltable. The required html property holds all the data and tags for an HTML table.
Example
{
"components": [
{
"role": "htmltable",
"html": "<table><tr><th>Name</th><th>Occupation</th></tr><tr><td><strong>Grace Hopper</strong></td><td>Computer Scientist</td></tr><tr><td><strong>Amelia Earhart</strong></td><td>Pilot</td></tr></table>",
"style": {
"tableStyle": {
"rows": {
"backgroundColor": "#fff",
"conditional": [
{
"selectors": [
{
"odd": true
}
],
"backgroundColor": "#f7f7f7"
}
]
}
}
}
}
]
}