Statistics
309308
180
93
2d
Badges
Tags
grid
Dependencies

Datagrid

First class DataGrid for Nette Framework.

Supported features: filtering, sorting, pagination, tree view, table view, translator, etc

πŸ” Take a look at the full documentation. πŸ‘€ You can also browse the online demo.

Give us a star, it makes us so happy. Thanks ⭐.️


Build Status Code coverage Licence Gitter

Downloads this Month Downloads total Latest stable


Versions

State Version Branch Nette PHP
dev ^6.3.0 master >=3.0 ^7.2
stable ^6.2.0 master >=3.0 ^7.2
stable ^6.1.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

GitHub Issues

Sometimes, when there is a new issue opened (either with a new feature request or a bug report), we 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.

Thank you for your support. ❀

Maintainers


Pavel Janda

Milan Felix Ε ulc

Former maintainers


Martin ProchΓ‘zka

Thank you for testing, reporting and contributing.

  • 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:

    • Added UUID support in Row::getDoctrineEntityProperty() (@Rixafy)
    • Added support for string IDs (@Rixafy)
    • Support inheritance static analysis in return types (@mabar)
    • Fixed $rowCallback argument of DataGrid::setColumnsSummary() method
  • 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 of null values
    • Rendering of inline add inside a component
  • 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!

    IMG_2014

    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 and CallbackConfirmation
    • 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:

    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
  • v5.4.8 v5.4.8

    • DateTimeHelper: added check for unix timestamp (great for displaying date/datetime columns with unix timestamp value set in data)
  • v5.4.7 v5.4.7

    • Fix for non-functional text filter in PostgreSQL + dibi, thanks @elring
  • v5.4.6

  • v5.4.5 v5.4.5

    Added:

    Changelog

  • v5.4.2 v5.4.2

    Fixed:

    • Group action checkboxes: fixed counter showing number of selected rows

    Changelog

  • v5.4.0 v5.4.0

    Added:

    • Added a possibility to render different content then is edited in the small inline edit

    Changelog

  • v5.3.3 v5.3.3

    Added:

    • Added ability to set the number of columns in the outer filters, thx @proki

    Changelog

  • v5.3.2 v5.3.2

    Fixed:

    • InlineAdd: Right click on cancel button does not trigger the cancel event anymore, it is also triggered by left mouseup, not mousedown

    Changelog

  • v5.3.1 v5.3.1

    Fixed:

    • When autosubmit is set to false and outer rendering true, display submit button in collapsible filter block
    • Fix for missing event.path in firefox, thx @jasir

    Changelog

  • v5.3.0 v5.3.0

    Added:

    • Enabled FilterSelect::setPrompt($prompt = NULL) for setting/resetting filter select prompt, thx @kuchy
    • Added counter for showing selected rows count (could be disabled, but enabled by default) thx @dakorpar

    Fixed:

    • FilterRange + FilterDateRange undefined variables in DoctrineCollectionDataSource, thx @JanGalek
    • Addd support for groupped NDBT selection, thx @temistokles
    • Data items count after filtering in ArrayDataSource, thx @sallyx
    • Some JS (using .length instead of .size())

    Changelog

  • v5.2.4

    Fixed:

    • Fixed final enforcement on the SUM Aggregation (removed).

    Changelog

  • v5.2.3

    Fixed:

    • #520: Fix of ajax response

    Changelog

  • v5.2.2

    Added:

    • Added custom renderer to SUM aggregation function
    • Added IAggregatable interface for datasources
    • Added IAggregatable support for DoctrineCollectionDataSource

    Fixed:

    • Update summary on data reload

    Changelog

  • v5.2.1

    Added:

    • #507: Add n:block="tbody" to tag tbody.
    • #512: Support nextras traversing in basic sortable usage.
    • #515: Changed number of first record from 1 to 0, when no records.
    • #516: Always show column with checkboxes when group actions is defined.

    Fixed:

    • #518: Fix MultiAction in treeview.

    Changelog

  • v5.2.0 v5.2.0

    Added

    • #506: DoctrineDataSource: use Paginator only when needed
    • #513: Aggregation support for doctrine source

    Changelog

  • v5.1.2

    Fixed

    • #447: Switched doctrine parameters to strings
    • #483: Fix "The variable β€šrowsβ€˜ already exists"
    • #488: Support for DateTimeImmutable
    • #493: Changed number of first record from 0 to 1.

    Changelog

  • v5.1.1 v5.1.1

    Fixed

    • #479: Fixed filter escaping for dibi 2.x.
    • #480: Fixed support of dibi 2.x.

    Changelog

  • v5.1.0

    Added

    • Added option to remove toolbar button

    Fixed

    • #451: Inline edit/add button validation scope
    • #457: Fluent interface improvement

    Changelog

  • v5.0.8 v5.0.8

    Added

    • Added group action of type multi select
    • Added option Action::$open_in_new_tab

    Fixed

    • InlineEdit assets fix
    • InlineEdit fixed method chaining

    Changelog

  • v5.0.7

    Fixed

    • #449: Fixed filter collapsing when multiple datagrids used
    • Fixed broken method chaining in some Filters

    Changelog

  • v5.0.6 v5.0.6

    Added

    • Configurable attributes to small inline edit select

    Fixed

    • Fixed small inlide edit of type select - after submit - value to html is not a select option value, but name

    Changelog

  • v5.0.5 v5.0.5

    Added

    • #434: Rewrote attributes handling in Filters.
    • #435: Option to disable column translating

    Fixed

    • #436: Fix calling referred column.
    • Fixed getElementPrototype to cache returned element

    Changelog

    Thanks for the contributions: @schneidermichal.

  • v5.0.4 v5.0.4

    Added

    Fixed

    • #436: Fix calling referred column.

    Changelog

    Thanks for the contributions: @kuba93.

  • v5.0.3 v5.0.3

    Fixed

    • Column\MultiAction icon

    Changelog

  • v5.0.2 v5.0.2

    Added

    • Added icon to columns status list option

    Dropped

    • #428: Don't change collation when searching in DibiFluent. (Possible BC break)

    Changelog

    Thanks for the contributions: @dakorpar

  • v5.0.1 v5.0.1

    Added

    • #425: $columnLink->setOpenInNewTab has been made fluent.

    Fixed

    • Assets: Reseting filter by one column

    Changelog

    Thanks for the contributions: @dakorpar

  • v5.0.0 v5.0.0

    Added

    • #276: Multi action column. (documentation)
    • #386: Escape column identifier in DibiFluentDataSource.
    • #387: Added latte block for outer filter.
    • #388: Collapsible filters. (Possible BC break) (documentation)
    • #404: Row condition for item detail. (documentation)
    • #405: Sorting datagrid by multiple columns. (documentation)
    • #413: Basic support for related columns in nette/database. (documentation)
    • #417: Improved tests with unix compatibility.
    • Option to show content of non-editable columns when editing. (documentation)
    • Option to reset single column filter using icon-remove in column header.

    Fixed

    • #340: Inline edit Uncaught TypeError: $.nette.ajax(...).success is not a function.
    • #360: Each column render cycle adds already existing classes.
    • #389: Session filter: Filter not found when modifying grid columns.
    • #390: Fix sorting by date in ArrayDataSource.
    • #395: Syntax error, unrecognized expression: .datagrid-tree-item[data-id=].
    • #397: Icons have been unified to use <i></i> tag.
    • #400: Fix double confirmation before ajax call.
    • #406: Fixed array source getCount method.
    • #420: Unable to add placeholders for range filters.
    • Column name escaping for DibiDataSource.

    Dropped

    • Support of PHP 5.5

    Deprecated

    • #393: Wrong method name deleteSesssionData.
    • #408: Method name on Filter getAttribtues.

    Changelog

    Thanks for the contributions: @dakorpar, @roman-vohnik, @PingusPepan, @attreid, @FVesely & @jakubvojacek.

  • v4.4.22 v4.4.22

  • v4.4.19 v4.4.19

  • v4.4.16 v4.4.16

  • v4.4.13 v4.4.13

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com