Website
Usage
To install latest version of contributte/datagrid
use Composer.
composer require ublaboo/datagrid
Documentation
For details on how to use this package, check out our documentation.
Shortly
You are looking at first class DataGrid for Nette Framework. Supported features: filtering, sorting, pagination, tree view, table view, translator and many others.
Give us a star, it makes us so happy. Thanks
What | Where |
---|---|
Documentation | contributte.org/packages/contributte/datagrid/ |
Demo | examples.contributte.org/packages/datagrid/ |
Example project | github.com/planette/playground/tree/master/contributte-datagrid |
Forum (EN) | will be updated |
Forum (CZ) | forum.nette.org/cs/25444 |
Versions
State | Version | Branch | Nette | PHP |
---|---|---|---|---|
dev | ^6.7.0 |
master |
3.0+ |
>=7.2 |
stable | ^6.6.0 |
master |
3.0+ |
>=7.2 |
stable | ^5.7.1 |
v5.x |
2.3 |
^5.6 |
stable | ^4.4.22 |
v5.x |
2.3 |
^5.6 |
stable | ^3.3.1 |
v5.x |
2.3 |
^5.3 |
Development
See how to contribute to this package. This package is currently maintained by these authors.
Future development
-
At the moment, we have limited time to maintain contributte datagrid for free. But you can create some maintenance time by sponsoring us. Ask us in email for available tarifs (email visible on https://github.com/paveljanda). At the moment, we have 1 little sponsor that gives us 1 hour of maintenance per month.
-
Sometimes, when there is a new issue opened (either with a new feature request or a bug report), we may assign a label with a dollar sign ($) and an amount of dollars to the issue. This is an opportunity for you to support datagrid vendor creators and resolve particular issue.
Consider to support contributte development team. Also thank you for using this package.
-
v6.5.1 v6.5.1
Bump!
Bug fixes:
- Hideable columns remember state - user have to use
$grid->setRememberState(false, true);
to keep hideable columns in session even when rememebr state is turned off
Diff: v6.5.0...v6.5.1
- Hideable columns remember state - user have to use
-
v6.5.0 v6.5.0
Bump!
New features:
- Added possibility to hide columns even with rememberState set to false (@RiKap)
- Allow PHP 8.0 in composer.json (@dg)
Bug fixes:
- Fix inline edit default value in (@stanislav-janu) DataGrid::setDefaultFilter() fix - revert from 5.x (@petrparolek) Diff: https://github.com/contributte/datagrid/compare/v6.4.1...v6.5.0
-
v6.4.1 v6.4.1
Bump!
- npm release
Diff: v6.4.0...v6.4.1
-
v6.4.0 v6.4.0
Bump!
- Naja 2.0 support (@rozsival)
Diff: v6.3.0...v6.4.0
-
v6.3.0 v6.3.0
Bump!
- Added check if filter range value is numeric for DoctrineDataSource (@juniwalk)
- support nextras/orm 4.0 with 3.1 backward compatibility (@martenb)
- contributte/datagrid-elasticsearch-data-source merged into main contributte/datagrid repo (@f3l1x)
Diff: v6.2.29...v6.2.30
-
v6.2.29 v6.2.29
Bump!
- Status/Option: added connfirmation dialog
Diff: v6.2.28...v6.2.29
-
v6.2.28 v6.2.28
Bump!
- Add option to set target of Export html:a button (@hlavacz)
Diff: v6.2.27...v6.2.28
-
v5.7.8 v5.7.8
Bump!
- Sorting wont use anything but ASC/DESC strings (@juniwalk)
Diff: v5.7.7...v5.7.8
-
v6.2.27 v6.2.27
Bump!
- Sorting wont use anything but ASC/DESC strings (@juniwalk)
Diff: v6.2.26...v6.2.27
-
v5.7.7 v5.7.7
Bump!
- Fixed group text action collision with another datagrid (@Matousek)
Diff: v5.7.6...v5.7.7
-
v6.2.26 v6.2.26
Bump!
- Fixed group text action collision with another datagrid
Diff: v6.2.25...v6.2.26
-
v6.2.25 v6.2.25
Bump!
- GroupActionCollection: better type hints
Diff: v6.2.24...v6.2.25
-
v6.2.24 v6.2.24
Bump!
- Button group actions (@besir)
Diff: v6.2.23...v6.2.24
-
v6.2.23 v6.2.23
Bump!
- assets: replace pushState to replaceState in history API (@martenb)
Diff: v6.2.22...v6.2.23
-
v5.7.6 v5.7.6
Bump!
- Fix - paginator option 'All' (@Sikipiki)
Diff: v5.7.5...v5.7.6
-
v6.2.22 v6.2.22
Bump!
- DibiFluentPostgreDataSource - fix for BC break in dibi 4.1.2 in text search (@elring)
Diff: v6.2.21...v6.2.22
-
v6.2.21 v6.2.21
Bump!
- Update DataGrid.php When sortCallback is not set. Use column sortableCallback (@VojtechSejkora)
Diff: v6.2.20...v6.2.21
-
v6.2.20 v6.2.20
Bump!
- Dont send request when confirm cancel clicked for naja.js (@MartinSzollos2016)
Diff: v6.2.19...v6.2.20
-
v6.2.19 v6.2.19
Bump!
- Composer: use newer version of contributte/application
Diff: v6.2.18...v6.2.19
-
v6.2.18 v6.2.18
Bump!
- ActionCallback::$onClick type fix
Diff: v6.2.17...v6.2.18
-
v6.2.17 v6.2.17
Bump!
- DataGrid: fix inline edit payload when editable callback is empty
Diff: v6.2.16...v6.2.17
-
v6.2.16 v6.2.16
Bump!
- Fix ajax method for small inline edit (@stanislav-janu)
Diff: v6.2.15...v6.2.16
-
v6.2.15 v6.2.15
Bump!
- Fix: Can not set default filter for FilterDateRange (@xsuchy09)
- Boostrap bc break template fix (fixes outer filters)
Diff: v6.2.14...v6.2.15
-
v6.2.14 v6.2.14
Bump!
- Fix items detail form parameter in detail template (@vitkutny)
Diff: v6.2.13...v6.2.14
-
v6.2.13 v6.2.13
Bump!
- filter template BS fixes
Diff: v6.2.12...v6.2.13
-
v6.2.12 v6.2.12
Bump!
- Fixed group action hiding (@novotnej)
Diff: v6.2.11...v6.2.12
-
v5.7.5 v5.7.5
Bump!
- Fixed group action hiding (@novotnej)
Diff: v5.7.4...v5.7.5
-
v6.2.11 v6.2.11
Bump!
- Naja support imporvement (@n3t)
Diff: v6.2.10...v6.2.11
-
v6.2.10 v6.2.10
Bump!
๐ - Fixed context in $.nette adapter (@radekdostal)
- Fixed translation string (@RiKap)
- GroupTextareaAction - \Nette\Forms\Container::addTextArea() require first parameter as string (@vaclavpavek)
- Fixed ArrayDataSource SelectBox filter - values are integers (@kuchy)
Diff: v6.2.9...v6.2.10
-
v6.2.9 v6.2.9
Bump!
๐ถ - Fixed Multiple column Aggregation Function rendering
- Added Multiple column Aggregation Function docs
- Added interface
ISingleColumnAggregationFunction
(which should be used for single column aggregation functions from now on, potential BC Break, not actual because the method::render()
should be already implemented)
Diff: v6.2.8...v6.2.9
-
v6.2.8 v6.2.8
Bump!
๐งท - Fixed Aggregation Function rendering + docs
Diff: v6.2.7...v6.2.8
-
v6.2.7 v6.2.7
Bump!
๐โโ๏ธ - assets/datagrid-spinners.js: remove unnecessary .bind(this)
Diff: v6.2.6...v6.2.7
-
v6.2.6 v6.2.6
Bump!
๐งโโ๏ธ - Add posibility to override/extend html class for the containing div (@Jakub-Fajkus)
- Fix default value of input of type select in small inline edit (@KrejcirD)
- datagrid-instant-url-refresh.js: dropped jQuery dependency (@martenb)
- Fix context in naja and $.nette adapters (@vitkutny)
- assets/datagrid.js: removed unnecessary
.bind(this)
Diff: v6.2.5...v6.2.6
-
v5.7.4 v5.7.4
Diff: v5.7.3...v5.7.4
-
v5.7.3 v5.7.3
Bump!
๐โโ๏ธ - Fixed paginator when using translated 'all' option
Diff: v5.7.2...v5.7.3
-
v6.2.5 v6.2.5
Bump!
๐ฉโ๐ป - Naja support (@filipcro)
Diff: v6.2.4...v6.2.5
-
v6.2.4 v6.2.4
Bump!
๐ Diff: v6.2.3...v6.2.4
Fixes:
- ItemDetail fix when multiple datagrids at same page (@BigOHenry)
- Fix array data source type error (@kuchy)
- Docs fixes (@n3t)
- README updates (@f3l1x)
-
v6.2.3 v6.2.3
Bump!
๐ Diff: v6.2.2...v6.2.3
Fixes:
- Fix the filter reset type error when the remember state is disabled (@jaroslavlibal)
-
v6.2.2 v6.2.2
Bump!
๐ Diff: v6.2.1...v6.2.2
Fixes:
- Make the $template parameter nullable in Column::setTemplate() (@jaroslavlibal)
-
v6.2.1 v6.2.1
Bump!
๐ธ Diff: v6.2.0...v6.2.1
Fixes:
- Added the casting to string to the CsvDataModel::getRow() (@jaroslavlibal)
-
v6.2.0 v6.2.0
Bump!
๐ Diff: v6.1.1...v6.2.0
Features:
-
v6.1.1 v6.1.1
Bump!
๐ Diff: v6.1.0...v6.1.1
Bugfixes:
- DataGrid: fixed resetting filter session
-
v6.1.0 v6.1.0
Bump!
๐ Diff: v6.0.1...v6.1.0
Features:
- Render condition within
ColumnStatus
(@peldax)
Bugfixes:
DateTimeHelper
&ColumnDateTime
: handling ofnull
values- Rendering of inline add inside a component
- Render condition within
-
v6.0.1 v6.0.1
Bump!
๐ป Diff: v6.0.0...v6.0.1
Features:
- Completed documentation
Bugfix:
- Replacement of
::getName()
with::lookupPath()
(@peldax) - datagrid.latte template (missing class with padding-bottom)
- phpstan, code sniffer
-
v6.0.0 v6.0.0
Bump V6!
Diff: v5.7.2...v6.0.0
Features
- Using Nette v3
- Using PHP 7.2 including strinct types
BC Breaks:
- Changed method name:
Ublaboo\DataGrid\Column\Column::addAttributes() -> ::addCellAttributes()
:Ublaboo\DataGrid\Column\Action::addAttributes()
->::addCellAttributes()
Ublaboo\DataGrid\Column\ColumnDateTime::addAttributes()
->::addCellAttributes()
Ublaboo\DataGrid\Column\ColumnLink::addAttributes()
->::addCellAttributes()
Ublaboo\DataGrid\Column\ColumnNumber::addAttributes()
->::addCellAttributes()
Ublaboo\DataGrid\Column\ColumnStatus::addAttributes()
->::addCellAttributes()
Ublaboo\DataGrid\Column\ColumnText::addAttributes()
->::addCellAttributes()
Ublaboo\DataGrid\Column\MultiAction::addAttributes()
->::addCellAttributes()
- Changed method name and method parameters:
Ublaboo\DataGrid\Column\Action::setConfirm(some mixed thing)
->::setConfirmation(IConfirmation $confirmation)
- There are 2 IConfirmation implementations:
StringConfirmation
andCallbackConfirmation
- There are 2 IConfirmation implementations:
- Names of template variables changed from snake_case to camelCase:
$columns_visibility
->$columnsVisibility
$original_template
->$originalTemplate
- etc ...
- Changed method parameter:
Ublaboo\DataGrid\Column\Column::setSort(array $sort)
->::setSort(string $sort)
(Before: ['status'
=>'ASC'
], after:'ASC'
)
- Dropped coffescritpt/sass assets -> using only JS/CSS assets now
-
v5.7.2 v5.7.2
Bump!
โ๏ธ Diff: v5.7.1...v5.7.2
Changes:
- Handle the invalid date values in the date and date range filters (@petaak )
- Add check for __toString() in array row value (@Rixafy )
- Added method ::getOptions() for FilterSelect and FilterMultiSelect (@stanislav-janu )
-
v5.7.1 v5.7.1
Bump!
โ๏ธ Diff: v5.7.0...v5.7.1
Changes:
- Added support for Export button confirm dialog (@Arziel)
- Bump 5.7.0 NPM package
- DoctrineDataSource - clean DQL orderBy (@JKoty)
- Bootstrap 4 calendar icon (@radekdostal) [#706]
- Repair paginator (@romanmatyus) [#645]
- NextrasDataSource - fix multiselect (@martenb) [#653]
- DoctrineCollectionDataSource - protectec properties [#672]
- Bugfix: throwing exception on null parent. [#721]
- Datagrid: setDataSource - allow NextrasDataSource [#737]
-
v5.7.0 v5.7.0
Bump!
๐ฒ Diff: v5.6.0...v5.7.0
Features:
- initial markdown docs (@paveljanda)
- add the object to string cast to the Row::getId method [#704]
- added
setPositionTop
to columns summary (@vladimirbiro) - append all defined attributes to (@paveljanda)
- allow zero value in custom editable value (@lukascellar)
- column - added condition callback to allow/disallow inline editing on each row (@radekprokes)
- allows set custom paginator template before datagrid component is attached to presenter component (@mhucik)
- support Bootstrap 4 [#416][#593][#678][#699][#700]
- regenereate CSS/JS files [#704]
Bugfix:
- don't include vendor in NPM [#676] (@f3l1x)
- action: fixed return annotation [#659] (@radekprokes)
- fix for DibiFluent vs Dibi\Fluent sort (@elring)
- fix ItemDetailForm for PHP7.2 (@oldamalec)
- fix default sort when column sort was changed and remember state is enabled (@pavelkovar)
- fixed showing summary columns [#686] (@radekprokes)
- empty values are not sending (@MilanPala)
BC:
- dropped minified CSS/JS files, you have to manage by yourself (@f3l1x)
Install via NPM (https://www.npmjs.com/package/ublaboo-datagrid).
npm i ublaboo-datagrid
Or you can use assets from rawgit. Just try it:
-
v5.4.9 v5.4.9
- PHP 7.2 support: removed usage of Nette\Object -> using Nette\SmartObject trait instead
-
v5.6.0 v5.6.0
Bump!
๐ Diff: v5.5.6...v5.6.0
Features:
- allow symofny/property-accessor v4.0
- run PHP 7.2 tests
- call addComponent on control (due to change in nette/application)
Bugfix:
- failing DibiFluent vs Dibi\Fluent tests
- failing NextrasORM v2.0 tests
- render url for signal in parent control
-
v5.5.6 v5.5.6
- Added possibility to render yet another Nette\Forms\Container in inline edit container
-
v5.5.5 v5.5.5
- package.json update - to latest version
-
v5.5.4 v5.5.4
- Fixed sorting of column after returning from different page and then manipulating with filter
-
v5.5.3 v5.5.3
- Assets: added .npmignore for exluding PHP files and other npm-irrelevant files
-
v5.5.2 v5.5.2
- Fixed sorting: let the previous remain after filtering
-
v5.5.1 v5.5.1
Fixes:
- TLink: Try to create presenter link when there is a colon in the link string (fixes link creation to presenter action)
-
v5.5.0 v5.5.0
New features
- Link creation update - look for signal handler in the whole way up to the UI\Presenter, fixes #592
- ColumnsSummary: added support for custom renderer (thanks @vitkutny)
- Add option to set render condition callback on action (thanks @jankonas)
Fixes
- Fixed sorting on column, which has defined default descending sort (thanks @proki)
- Use single quotes when finding option in inline edit (thanks @FilipLukac)
-
5.4.13 5.4.13
- Fixed TButtonRenderer to support php < 7.1
-
5.4.12 5.4.12
- TButtonRenderer trait (so even ToolbarButton can be rendered by custom callback)
-
v5.4.11 v5.4.11
- Assets: fixed hiding of inline edit button