SPHPlayground API
SPHPlayground
sphplayground sphplayground

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>.

Cars:
NameModelYearkmprice (€)
TeslaModel X201810100062470
Audie-tron202115000118900
NissanLeaf20165300020400

TABLE FACTORIES: building and manipulation

The TableBuilder class

A TableBuilder generates Table objects from iterable data sources.

The LineNumberer class

A LineNumberer is able to add linenumbers to a Table objects.

#NameModelYearkmprice (€)
1.TeslaModel X201810100062470
2.Audie-tron202115000118900
3.NissanLeaf20165300020400

The CsvTablebuilder class

CsvTablebuilder generates Table objects from CSV files.

#DateExerciseCategoryWeightWeight UnitRepsDistanceDistance UnitTimeComment
9631.2020-10-27Cable Face PullShoulders15.0kgs10
9632.2020-10-27Rope Push DownTriceps15.0kgs10
9633.2020-10-29BasketballCardio0.0m1:30:00
9634.2020-10-29CyclingCardio7.0km0:27:00
9635.2020-10-30CyclingCardio5.6km0:26:00
9636.2020-10-31Barbell PressShoulders40.0kgs5
9637.2020-10-31Barbell PressShoulders40.0kgs5
9638.2020-10-31CyclingCardio11.5km0:40:00
9639.2020-10-31HikingCardio1.9km1:00:00
9640.2020-11-01Pull UpBack0.0kgs2