- table_rows(:Goal, +DataList)// is det[private]
- table_rows(:Goal, +DataList, +MaxTop, +MaxBottom)// is det[private]
- Emit a number of table rows (
tr). The content of each row is created by callingcall(Goal, Data)as a DCG. The rows have alternating classesevenandodd. The first row isodd.The variation table_rows//4 limits the size of the table, placing a cell with class
skip, indicating the number of skipped rows.Note that we can also achieve alternate colouring using the CSS pseudo classes
tr:nth-child(odd)andtr:nth-child(even).