Skip to content

Allow consumers to customize the sorting logic of the Table components #425

@cjcenizal

Description

@cjcenizal

Per discussion with @bmcconaghy, we may want to customize the way the columns of a table sort the rows within that table. For example, if that row contains JSON maybe we can sort based on a specific field within the JSON.

One possible solution would be to add a getSortValue property to the columns Table prop. The consumer can define a function which accepts the cell and row as arguments, and returns a value with which the Table can perform sort comparisons.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions