Releases: Kreyu/data-table-bundle
v0.24.2
What's Changed
Fixed base theme throwing error when used with Doctrine's EntityFilterType
Full Changelog: v0.24.1...v0.24.2
v0.24.1
What's Changed
This small release fixes data collector not collecting pagination and filtration data properly and throwing an exception in profiler
Full Changelog: v0.24.0...v0.24.1
v0.24.0
What's Changed
This release fixes regression after previous Profiler related changes #137 and improves the pagination "per page" selector.
Fixes and improves the integration with Profiler:
- now it properly collects pagination data instead of always showing page 1 and 25 items per page
- now it does not interfere with pagination controls nor current page results
Fixes and improves the "per page" selector:
- now it properly displays currently selected choice
- it does not lose other URL query parameters on change (e.g. filtration form)
- submitting a filtration form no longer resets the per page
Caution
This release is not backwards compatible due to new method in the data table data collector interface:
namespace Kreyu\Bundle\DataTableBundle\DataCollector;
interface DataTableDataCollectorInterface extends DataCollectorInterface
{
+ public function collectPaginationData(DataTableInterface $dataTable, PaginationData $data): void;
Full Changelog: v0.23.0...v0.24.0
v0.23.0
What's Changed
- Array source by @Kreyu in #134
- Page size selectable by user by @Kreyu in #135
- [BREAKING CHANGE] Pass row data as second argument of the "formatter" column option by @Kreyu in #136
Caution
This release includes breaking change. The definition of column's formatter
option has changed, and now gets row data as second argument. For example:
// Before
'formatter' => function (string $fullName, ColumnInterface $column, array $options) {
// ...
}
// After
'formatter' => function (string $fullName, User $user, ColumnInterface $column, array $options) {
// ...
}
Full Changelog: v0.22.3...v0.23.0
v0.22.3
What's Changed
- Fix profiler tab throwing an error and disappearing for data tables with batch actions
Full Changelog: v0.22.2...v0.22.3
v0.22.2
v0.22.1
v0.22.0
What's Changed
- Completely overhauled integration with Symfony Profiler - see docs for more details
- Actions created by the
ActionsColumnType
now contains a valid reference to their data table - Columns created by the
CollectionColumnType
now contains a valid reference to their data table, and each nested column is now named by their index (0, 1, 2, etc.) instead of generic and non-unique__name__
- Two new data table events -
PRE_INITIALIZE
andPOST_INITIALIZE
Full Changelog: v0.21.4...v0.22.0
v0.21.4
This small update fixes the TransformDateRangeFilterData
class, that was generating incorrect date range.
Previously, the end-range date was always +1 day which won't work properly with BETWEEN operator. Now the end-range date is always modified to equal 23:59:59.999999
of the given day.