Tables
Data Table package with server-side processing, unlimited exporting and VueJS components. Quickly build any complex table based on a JSON template.
This package can work independently of the Enso ecosystem.
The front end assets that utilize this api are present in the tables package.
For live examples and demos, you may visit laravel-enso.com
click on the photo to view a short demo in compatible browsers
click on the photo to view an export demo in compatible browsers
Installation, Configuration & Usage
Be sure to check out the full documentation for this package available at docs.laravel-enso.com
Contributions
are welcome. Pull requests are great, but issues are good too.
License
This package is released under the MIT license.
Unable to install on Laravel 5.8
This is a question.
Prerequisites
I am trying to install this on laravel
Toastr and VueTable were not created with that directory. I have been able to create the Toastr file but can not install VueTable as its not in the correct directory?
Entries count <> Rows if you have deleted rows
This is a bug.
Prerequisites
Description
The entries count in table footer is wrong if you have soft deleted rows in your database.
Steps to Reproduce
Expected behavior
In my screenshot the footer row should be "From 1 to 12 of 12 entries"
Actual behavior
In my screenshot the footer row is "From 1 to 12 of 14 entries"
Default sort column in template
This is a feature request.
Prerequisites
Description
Allow the table template to include a default column for sorting
Datatable how add multiple selected values in 1 column
This is a bug | feature request.
Prerequisites
Description
i have to add column that contain multiple options. i used group_concat. but datatable's total value changed wrong cause of group by
Steps to Reproduce
Expected behavior
If possible add a column to menus index datatable show which roles selected.
Actual behavior
Undefined property: stdClass::$nullLast
This is a bug.
Prerequisites
Description
Crash sorting -
In doc: https://docs.laravel-enso.com/packages/vue-datatable.html#template
Steps to Reproduce
Example template:
Expected behavior
Actual behavior
Make number format configurable
At the moment decimal numbers in Datatables are rendered with . as decimal sep. and , as thousands sep. - It would be nice if we can configure this.
Maybe a fix in combination with: https://github.com/laravel-enso/Core/issues/26
Add customfilters to datatable
This is a feature request.
Description
if request has custom filter fields how catch them in ExampleTable.php query method.
Steps to Reproduce
Expected behavior
if filters have custom field i want to join other table and add multiple where condition to query. where multiple condition check required.
Actual behavior
filters add column it only check equal that field
Allow searching for/filter by enum
This is a bug.
Prerequisites
Description
It should be possible to search for an enum value inside a vue datatable Maybe inside tables/app/Services/Data/Filters/Search.php the columns that have enums set in meta may be treated differently and be queried with their mapping from enum.
Steps to Reproduce
Search after keyword 'Miss' inside people section here: https://www.laravel-enso.com/administration/people/
Expected behavior
We expect to see all the persons with title 'Miss' as results.
Actual behavior
We get persons with title 'Mr', 'Ms' and 'Miss' as results, this is unexpected
Number interval filters not working
This is a bug.
Prerequisites
Description
Number interval filters are not working because in
Filters.php
it tries to format the number as dateIn
src/app/Services/Table/Filters.php
on Line 123 and 145 you are using the following$value->get('dateFormat')
is undefined (e.g. for number values) it uses the date format from config$dateFormat
is set and if yes, you are treating the value as date which leads to the following exception:RecordsInfo.vue producing error
This is a bug.
Prerequisites
Description
RecordsInfo.vue
is throwing an error which seems to be coming from the computed properties (see screenshot below of error), all computed properties are showing(error during evaluation)
. The error goes away if I comment out the contents of thechunkInfo()
computed property, however the other computed properties still show(error during evaluation)
.It seems to be related to the
this.i18n()
function, when I change thechunkInfo()
computed property to the following, it produces no error and shows the string on page.Steps to Reproduce
Installed into a Laravel project standalone without the rest of Enso, followed the documentation for an independant installation, all listed dependencies are installed.
The error only happens when data is in the table.
Expected behavior
A string like shown in the example
From 1 to 10 of 100000 entries (filtered from 100000 total records)
Actual behavior
No string generated at all, error in console shown above.
Table pagination fails when multi-select filters are applied
This is a bug.
Prerequisites
Description
When dealing with multiple selection filters, I noticed that pagination is not working when selecting as many options as it needs to exceed the number of entries per page.
Steps to Reproduce
Expected behavior
See all results as if filter was not applied with correct number of pages.
Actual behavior
Just first page is visible.
Table responsiveness not working well when columns are unhidden.
This is a bug.
Prerequisites
Description
Steps to Reproduce
hidden-control
in the first column which can be expanded to show the rest of the columns). It works best if you have a table where if you chose all columns it will not fit in the screen. (or to use your demo side, look at https://www.laravel-enso.com/administration/users/ with a lower resolution (640x480). This can be scaled if there are more columns, the resolution can be higher.hidden-control
- ">") at all, making the table look weird ( until it is reset and is back to initial visible/not visible and/or hidden/not hidden columns OR window is resized even slightly). The ">"hidden-control
disappears only if you remove the hidden columns at the end, but even if you have enough space, when you select the columns at the end, instead of adding them as visible columns, they are added as hidden.If you set in table JSON "responsive= false", there is no scroll bar to let the user navigate to the end of the table.
When debugging, we've noticed that in ResponsiveTable.js (from enso-ui/tables), the condition this.shouldUnhide() in fit() method will always be false because the values compared in wasChanged() are set as being the one and the same in a previous step, in updateWidth(), because there is no window resizing involved to force a difference in the widths compared.
Expected behavior
When columns are being unchecked from Visibility table control, have the hidden ones appear into view. If 'responsive = false', a scroll bar should appear to allow the user to navigate to the end of the table.
Actual behavior
Columns visible in the main table view are removed from the table, but the ones pushed under the hidden-control (collapsible /expandable ">") are not returned into the main table view, ending up having one column visible, and the rest hidden, although there is room left for all to fit: