Closed chrisvidal closed 4 years ago
and the sorting setup in `config_list.yaml' is not working as well.
@chrisvidal Would you please be able to provide the config you are using for the list?
the config_list.yaml
list: $/voilaah/astar/models/capability/columns.yaml
modelClass: Voilaah\Astar\Models\Capability
title: Capabilities
noRecordsMessage: 'backend::lang.list.no_records'
showSetup: true
showCheckboxes: true
recordsPerPage: 20
toolbar:
buttons: list_toolbar
search:
prompt: 'backend::lang.list.search_prompt'
recordUrl: 'voilaah/astar/capabilities/update/:id'
defaultSort:
column: name
direction: asc
showTree: true
the search is working as expected, I forgot to set the searchable: true
in the columns.yaml
,
my apologies
Only the sorting is not working.
@chrisvidal Sorting is not applied when the list is in a tree view (ie. showTree
is true). If you require sorting, you cannot use the tree view.
I see ~ is it the same behavior with NesteTree? so what is the sorting applied?
@chrisvidal Yes, the same behaviour applies with the NestedTree trait as well. I believe Simple Trees are just sorted by parent_id and ID fields, whereas Nested Tree uses the left/right values to determine order.
alright then. closing. the search is working and that is all that matters to me here thanks @bennothommo
Description:
Steps To Reproduce:
I have the following setup:
no trace here, as it should be.