Releases: hamburgscleanest/data-tables
Releases · hamburgscleanest/data-tables
v1.0.1
v1.0.0
The first revision of the wiki has been released!
https://github.com/hamburgscleanest/data-tables/wiki
Added
Automatic Package Discovery
for Laravel versions 5.5.x and later- Caching of the results
DataTable::model(TestModel::class, $columns, new SimpleCache($minutes));
// or
$dataTable->cache(new SimpleCache(1440));
- You can now change the pagination symbols
$paginator->pageSymbols(['first' => 'first page', 'last' => 'last page', 'next' => 'next', 'previous' => 'prev']);
Release Candidate
Search modes in the "FulltextSearch" class can now be set correctly.
Release Candidate
Improved the DataScout data component.
- you can still do a simple search like in the old version by using the "SimpleSearch" class
- you can now do a fulltext search by using the "FulltextSearch" class (make sure that you have a FULLTEXT INDEX on the columns!!)
/**
* New way of constructing the DataScout
*/
$dataScout = new DataScout(new SimpleSearch(['name']));
// or the new fulltext search
$dataScout = new DataScout(new FulltextSearch(['name']));
// it supports different modes like "IN NATURAL LANGUAGE MODE", "IN BOOLEAN MODE" and "WITH QUERY EXPANSION"
$dataScout->setMode('WITH QUERY EXPANSION');
Release Candidate
Added
- LinkColumn formatter
/**
* Every attribute of the model can be used to generate a link.
* For example generating a link to the users profile on the "name" column.
* Values in curly braces, e.g. "{id}" will be replaced by the model's value.
*/
$dataTable->formatColumn('name', new LinkColumn('/users/{id}')); // e.g. /users/1337
Release Candidate
Added
- Components can now be accessed directly via properties
// can be accessed via $dataTable->paginator
$dataTable->addComponent(new Paginator);
- ColumnFormatter for Icons -> IconColumn
- ColumnFormatter for Images -> ImageColumn
Fixed
- Remembering the state does not work
- DataComponents could not access the defined relations (columns of relations like 'relation.id')
Beta Version
- SortableHeader: Fixed sorting bug..
Beta Version
- Added ability to reference related columns
- Added support for aggregates like "count", "max", "min", etc.
- The page count is calculated correctly now
- Display custom HTML or a View if the dataset is empty
Beta Version
Implemented column formatters.