AdobeDocs / uix

UI Extensibility Public Documentation
https://developer.adobe.com/uix/docs/
Apache License 2.0
1 stars 11 forks source link

[AEM UI Extensibility] CFC Custom Grid Columns sorting #43

Open davidjgonzalez opened 1 year ago

davidjgonzalez commented 1 year ago

Is there an existing issue for this?

Which topic?

https://developer.adobe.com/uix/docs/services/aem-cf-console-admin/api/grid-columns/

What's wrong with the content?

2023-06-07 at 12 30 PM

Setting sortable: true does not appear to make a column sortable (there is no sort direction icon next to the label, nor does clicking the column label do anything). I think this should actually be a function hook that acts as a comparator - for example, I have an "Age" custom column, with values likes "9 seconds" and "1 year" ... i assume if this works, it would do a string compare and think "9 seconds" is > "1 year" -- even though its not.

Following suit, defaultSortOrder does not seem to do anything. Assuming this should work, it would be good to clarify what this actually does. Does it cause the gird to sort the values in the specified for this column on initial load? What id 2 columns are specified with this? Which one sorts first, and which one is the "tie breaker" (2nd sort).

Also, the description of this field is in the wrong column in the docs table - it should be in the "description" col rather than "required" col

What changes do you propose?

No response

Anything else that can help to cover this?

No response

naydav commented 1 year ago

Hi @davidjgonzalez ,

Thank you very much for your feedback. The issue with column sorting is a known issue, but you have provided some additional aspects. We will start working on addressing the task next week.

Thank you.

naydav commented 1 year ago

Realted PR: https://github.com/AdobeDocs/uix/pull/42

naydav commented 1 year ago

The https://github.com/AdobeDocs/uix/pull/42 has been merged. But I didn't close ticket because a fix requires additional work (in progress).