datagrid icon indicating copy to clipboard operation
datagrid copied to clipboard

Order can now have multiple columns

Open bckp opened this issue 8 years ago • 2 comments
trafficstars

Order can now have multiple columns, but there is some BC changes.

Order of columns are based of call order of getNewState, so if you manually change order of getNewState, or add custom $order, it can be changed again by user (or if user change URL manually). This can be fixed by calling columns in proper order on getOrder (not sure if this is necessary as it may be intend for programmers to change order).

$order passed to data callback and data count callback is in key => value form, so it is easier to build order string. $order = [ column => ASC|DESC ]

on $column->setOrder() is new parameter $required, this is if you require to have order set on that column, it will drop NULL option and change ASC -> DESC -> ASC -> DESC

bckp avatar Aug 21 '17 12:08 bckp

BC break on $order

bckp avatar Aug 21 '17 13:08 bckp

ping @hrach

bckp avatar Aug 23 '17 12:08 bckp