column-sortable icon indicating copy to clipboard operation
column-sortable copied to clipboard

[FR/Proposal] Per-Model Default Sort

Open AAllport opened this issue 4 years ago • 2 comments

Proposal to add $sortableDefault to the model that will be used when sortable() $defaultParameters is passed null. This would override columnsortable.default_first_column

$sortableDefault would follow the same format as $defaultParameters

Happy to write the code myself!

AAllport avatar Oct 11 '19 15:10 AAllport

Hey @AAllport if it makes sense to you sure go ahead; please make sure you add proper tests and readme.

Kyslik avatar Oct 14 '19 19:10 Kyslik

Yeah, there are a few times that I've overridden the sortable function, that in tern called the vendor provided one with some default's. Makes sense where you want to explicitly define the defaults for things displayed in the user, but no in tasks, If that makes any sense.

Will try to get this sorted (pun intended) in the next few weeks!

AAllport avatar Oct 14 '19 19:10 AAllport