Release 2.0.2 (#3856)
* allow to overwrite global spreadsheet styles * bump version * fix deprecations in vcard download * bump composer packages * added help page for all registered locales * fix menu id's, cleanup times route, fix configurable homepage redirect * format duration without leading zero in hours (unify javascript with php behavior) * fix active records in all screen sizes * improved responsiveness in XS * fixed invoice number for customer null fields * fix javascript respects multiple recent-activity dropdowns * show recent activities on small screens * fix user-profile layout column in XS * fix search is always marked as active
This commit is contained in:
@@ -113,8 +113,23 @@ final class DataTable implements \Countable, \IteratorAggregate
|
||||
$this->columns = $columns;
|
||||
}
|
||||
|
||||
public function addColumn(string $name, array $column): void
|
||||
/**
|
||||
* Supported $column options:
|
||||
* - class
|
||||
* - title
|
||||
* - translation_domain
|
||||
* - orderBy (string|false)
|
||||
* - order (desc, asc)
|
||||
*
|
||||
* @param string $name
|
||||
* @param array $column
|
||||
* @return void
|
||||
*/
|
||||
public function addColumn(string $name, array $column = []): void
|
||||
{
|
||||
if (!\array_key_exists('class', $column)) {
|
||||
$column['class'] = '';
|
||||
}
|
||||
$this->columns[$name] = $column;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user