This PR adds a sortable functionality to the package. It allows setting the sortable property for header's Cell objects to allow the sorting of a column. (Examples added to the README.md). It uses the SortableIcon Vue component from Laravel Nova (available as global Vue component) and the InteractsWithQueryString mixing from the laravel-nova package to keep the same UX/UI of the main package.
Also included the optional sortableData property to the Cell objects that allows to define a different value for display and sorting.
This PR adds a sortable functionality to the package. It allows setting the
sortable
property for header'sCell
objects to allow the sorting of a column. (Examples added to the README.md). It uses theSortableIcon
Vue component from Laravel Nova (available as global Vue component) and theInteractsWithQueryString
mixing from the laravel-nova package to keep the same UX/UI of the main package.Also included the optional
sortableData
property to theCell
objects that allows to define a different value for display and sorting.