Does UUI library have a concept of a
# package-development
w
Does UUI library have a concept of a sortable list/table ?
Or should I be using an extension type that deals with this already ?
j
no it doesn't
the backoffice has the UmbSorterController but that's about it
w
Is there an extension type I should use ?
j
some property editors use a sortable list such as repeatable textstrings and dropdown
w
I want a table with clickable headers to sort the table basically
j
don't know if there is a common element between them
w
I was hoping uui-table would do something magical for me
j
ohhh, we are talking about different concepts here
w
Yeh most likely 🙈
j
uui-table is just a plain table meant for further implementation... there's the umb-collection in the backoffice, which has different things if you implement a collection repository
w
Clickable header to sort the data in the table by that asc or desc
j
we dont have the magical umb-table from the old backoffice - not yet at least
w
Would it be part of UUI or an umb- thing
j
I could see it being a part of UUI, maybe something like data tables in vuetify, which has a client-only table, server-provided data, and virtual tables: https://vuetifyjs.com/en/components/data-tables/basics/#usage
w
Yeh that does sound/look useful
So collections is what I should do instead ?
Collection, Collection view and then collection action ?!
Or.... !?
j
well that will give you a view just like Settings - Languages
I dont think sorting on headers is possible out of the box, but you can always query your way to them and implement a click handler yourself
it's just a umb-table (notice the
umb-
prefix) so you can use that directly
w
OK will start investigating
Been in meeting - so will look after a cup of coffee (thanks for the input Jacob )
Interestingly there is an sort event and some sorting properties... will play around https://apidocs.umbraco.com/v14/ui?path=/docs/components-table--docs
5 Views