HTML tables: for tabular data presentation
Table element represents tabular data —that is, information expressed via a
two-dimensional data table. [1]
The Table component
The structure of a Table object follows closely the specification of a HTML <table>.
- The Caption class specifies the caption (or title) of a table
- The Thead class defines a set of rows defining the head of the table.
- The Tbody class groups one or more rows as the body of a table.
- The Tfoot class defines a set of rows defining the foot of the table.
- The Tr class defines a row of cells in a table. Those are implementaitions of Cell interface.
- The Th class implements Cell as header of a group of table cells.
- The Td class implements Cell as data container.
Cars:| Name | Model | Year | km | price (€) |
|---|
| Tesla | Model X | 2018 | 101000 | 62470 |
| Audi | e-tron | 2021 | 15000 | 118900 |
| Nissan | Leaf | 2016 | 53000 | 20400 |
TABLE FACTORIES: building and manipulation
A TableBuilder generates Table objects from
iterable data sources.
A LineNumberer is able to add linenumbers to a Table objects.
| # | Name | Model | Year | km | price (€) |
|---|
| 1. | Tesla | Model X | 2018 | 101000 | 62470 |
|---|
| 2. | Audi | e-tron | 2021 | 15000 | 118900 |
|---|
| 3. | Nissan | Leaf | 2016 | 53000 | 20400 |
|---|
CsvTablebuilder generates Table objects from CSV files.
| # | Date | Exercise | Category | Weight | Weight Unit | Reps | Distance | Distance Unit | Time | Comment |
|---|
| 9631. | 2020-10-27 | Cable Face Pull | Shoulders | 15.0 | kgs | 10 | | | | |
|---|
| 9632. | 2020-10-27 | Rope Push Down | Triceps | 15.0 | kgs | 10 | | | | |
|---|
| 9633. | 2020-10-29 | Basketball | Cardio | | | | 0.0 | m | 1:30:00 | |
|---|
| 9634. | 2020-10-29 | Cycling | Cardio | | | | 7.0 | km | 0:27:00 | |
|---|
| 9635. | 2020-10-30 | Cycling | Cardio | | | | 5.6 | km | 0:26:00 | |
|---|
| 9636. | 2020-10-31 | Barbell Press | Shoulders | 40.0 | kgs | 5 | | | | |
|---|
| 9637. | 2020-10-31 | Barbell Press | Shoulders | 40.0 | kgs | 5 | | | | |
|---|
| 9638. | 2020-10-31 | Cycling | Cardio | | | | 11.5 | km | 0:40:00 | |
|---|
| 9639. | 2020-10-31 | Hiking | Cardio | | | | 1.9 | km | 1:00:00 | |
|---|
| 9640. | 2020-11-01 | Pull Up | Back | 0.0 | kgs | 2 | | | | |
|---|
Error
Call to undefined method Sphp\Documentation\References\Data\ReferenceCollection::setW3SchoolsReference()
- code:0
- file:/home3/fjlpxeha/playground.samiholck.fi/manual-app/content/docs/sphp-html-tables.php
- line:82
Trace information
file:/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/ManualPageBuilder.php
line:57
function:include
file:/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/classes/Man/Routers/ManualPageBuilder.php
line:43
class:Man\Routers\ManualPageBuilder
instance method:parse
arguments: - 'sphp-html-tables'
class:Man\Routers\ManualPageBuilder
instance method:__invoke
arguments: - object(Sphp\Router\RouteData)
file:/home3/fjlpxeha/playground.samiholck.fi/sphp/php/Sphp/Router/Router.php
line:149
function:call_user_func
arguments: - object(Man\Routers\ManualPageBuilder)
- object(Sphp\Router\RouteData)
file:/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php
line:22
class:Sphp\Router\Router
instance method:execute
file:/home3/fjlpxeha/playground.samiholck.fi/index.php
line:7
function:require_once
arguments: - '/home3/fjlpxeha/playground.samiholck.fi/manual-app/app/php/loaders.php'