A presentation component that displays a table. Each table cell can contain text and / or a graphic. For better mobile support, the table can have a fixed width. Users can pan the table horizontally.
To install the component with the Adapt CLI, run the following from the command line:
adapt install adapt-tableadvanced
Alternatively, this component can also be installed by adding the following line of code to the adapt.json file:
"adapt-tableadvanced": "*"
Then running the command:
adapt install
(This second method will reinstall all plug-ins listed in adapt.json.)
Use the Plug-in Manager to use this component in the Adapt authoring tool.
A properly formatted JSON is available in example.json
Use the _rowHeaderIndexes and _colHeaderIndexes attributes to set a row or column as a heading. Multiple indexes must be seperated with ,.
"_rowHeaderIndexes": "0,4",
"_colHeaderIndexes": "0",You may define a min width for the table in pixel.
_minWidth
Double borders can occur because both the table and the <th> and <td> elements have separate borders. To remove double borders enable this option.
"_isBorderCollapse": true,Defines the appearance of the table border. The default appearance is solid.
"_tableBorderAppearance": "solid",Thickness of the table border line in pixels.
"_tableBorderLineWidth": 3,Each row can have a css class and a list of cells.
Wrapps html colspan and rowspan attribute.
Defines the appearance of the cell border. The default appearance is solid
"_cellBorderAppearance": "solid",Thickness of the cell border line in pixels.
"_cellBorderLineWidth": 1,Background color of the cell as a valid css value.
"_cellBackgroundColor": "darkgreen",Text color of the cell as a valid css value.
"_cellTextColor": "white",Text and or graphic content of the table cell.
Defines the horizontal alignment in the cell. Left: The contents of the cell are left-aligned. Center: The contents of the cell are centered. Right: The contents of the cell are right-aligned. The default alignment is center.
"_textAlignment": "center",Defines the vertical alignment in the cell. Top: Allign content to the top of the cell. Middle: Allign content in the middle of the cell. Bottom: Allign content to the bottom of the cell. The default alignment is middle.
"_verticalAlignment": "middle",Example: Set's the second column to 200 pixel.
{
"_column": 1,
"_width": 200
}No Accessibility support.
Author / maintainer: DeSimoD
This is a fork of: LearnChamp
Cross-platform coverage: Chrome, Chrome for Android, Firefox (ESR + latest version), Edge 12, IE 11, Safari iOS 9+10, Safari OS X 9+10, Opera
