mi6 / ic-ui-kit

Intelligence Community UI Kit (based on StencilJS)
MIT License
24 stars 25 forks source link

Sort exclusions for data tables #805

Open DBD324 opened 1 year ago

DBD324 commented 1 year ago

Summary

Sort exclusions allow specific rows to be excluded from a sort so that they appear at the top or bottom of a sorted list.

๐Ÿ’ฐ User value

This allows specific data to be pinned to top or bottom and be excluded from sort. This could be useful when certain values don't have content within a sortabel column.

๐Ÿ“š User Stories

If relevant, describe the high-level functionality as user stories.

As an ICDS developer I need to be able to specify rows to be excluded from a sort So that they can be positioned to top or bottom of a table regardless of sort.

๐Ÿ“ Acceptance Criteria

If relevant, describe in full detail the different interactions and edge cases that the component or patterns needs to fulfil.

Given that a data table exists with a column that is sortable, When setting the data table column sort properties Then specific rows can be excluded, and the position of the excluded rows can be set to either 'top'(default) or 'bottom'.

โœ Designs

If there's a Figma design file (or other mock-up), include it here.

ย ๐Ÿงพ Guidance

If there's written guidance or documentation, include it here.

DBD324 commented 1 year ago

Extends functionality applied in ticket https://github.com/mi6/ic-ui-kit/issues/790 . Ticket is dependent on 790.

Relates to ticket #76 .