Releases: Kreyu/data-table-bundle
Releases · Kreyu/data-table-bundle
v0.30.2
v0.30.1
v0.30.0
What's Changed
- Improved translation of the column values (#209 #206):
- added
value_translation_key
option toColumnType
for more complex use-cases, - fixed
value_translation_parameters
not used in built-in themes, - added support for automatic translation of the values that implement the Symfony's translatable contract,
- added documentation section about translating the column values - see docs
- added
- Added the
separator_html
option toCollectionColumnType
. Setting this option to true will render the value given inseparator
option as HTML. This allows providing separators like<br/>
or<hr/>
(#207). - The
separator
option inCollectionColumnType
now accepts values that implement the Symfony's translatable contract (#207). - Added a "demo applications" section to documentation, open for community examples and demos ❤️ (#111)
Full Changelog: v0.29.2...v0.30.0
v0.29.2
v0.29.1
What's Changed
- Fixed missing
btn-icon
class in Tabler theme when usingFormActionType
with icon, but without label
Full Changelog: v0.29.0...v0.29.1
v0.29.0
What's Changed
- Fixed template inheritance in column header, value and action blocks #201
- Actions can define theme-specific variants to change how they are rendered:
// Before ☹️
// - renders with "btn btn-primary btn-danger foo" classes
// - "btn-primary" comes from theme and cannot be removed
// - final color of the button is determined by which class is defined first in the stylesheet
$builder->addRowAction('delete', ButtonActionType::class, [
'attr' => [
'class' => 'btn-danger foo',
],
]);
// After 😎
// - renders with proper "btn btn-danger foo" classes
// - backwards compatible
// - concatenates with custom classes in attr option
$builder->addRowAction('delete', ButtonActionType::class, [
'variant' => 'danger',
'attr' => [
'class' => 'foo',
],
]);
For more details and full explanation, see action variants documentation.
Full Changelog: v0.28.4...v0.29.0
v0.28.4
What's Changed
- Restored default label of ActionsColumnType, removed by mistake in 0.28. Before 0.28 it was "Actions" and this was removed by mistake, and automatically added column was using __actions as label.
- Removed unnecessary divs between actions in Bootstrap 5 theme. Previously, making action not visible was still rendering a div, making a visible gap between actions
Full Changelog: v0.28.3...v0.28.4