Skip to content

Instantly share code, notes, and snippets.

@suwardany
Last active August 29, 2015 14:01
Show Gist options
  • Save suwardany/5b275de37a9ba1863f3b to your computer and use it in GitHub Desktop.
Save suwardany/5b275de37a9ba1863f3b to your computer and use it in GitHub Desktop.
Data Grid changes

JS Plugin

Make sure you update your js plugin by merging in the changes from the platform repository or by manually replacing the old file located under public/themes/admin/default/assets/cartalyst/js/data-grid.js with the latest version.

Service Provider & Facade

Update Service Provider to Cartalyst\DataGrid\Laravel\DataGridServiceProvider

Update facade to Cartalyst\DataGrid\Laravel\Facades\DataGrid

Template updates

Change the following variables on the underscore templates as follows

valMask -> val_mask

colMask -> col_mask

nextPage -> next_page

prevPage -> previous_page

totalPages -> pages

pageStart -> page_start

pageLimit -> page_limit

filteredCount -> filtered

Change the no-results data template to no_results on the no results template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment