Adds a row to the table. Constrains our data to the columns we've added.
public addRow ( array $row = [], string $key = '', array $attributes = [] ) : TableSummaryModule | ||
$row | array | An array representing a row where the key matches a column key and the value is either an HTML-formatted string or an object with a toString() method. (Something echo-able.) |
$key | string | The key for the row. Nothing to do with the column key. Here for expansion, like in case we want to sort items eventually. |
$attributes | array | The attributes on the tr element. |
return | TableSummaryModule | $this |