-
Notifications
You must be signed in to change notification settings - Fork 26
fix: column sort indications reflect truth [MA-4062] #2808
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,8 @@ interface TableViewHeader { | |
| label: string | ||
| /** this property defines whether sort icon should be displayed next to the column header and whether the column header will emit sort event upon clicking on it */ | ||
| sortable?: boolean | ||
| /** When provided, determines the intial arrow direction on the column header, if more than one header has this value only the first is applied */ | ||
| initialSort?: 'asc' | 'desc' | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's already a |
||
| /** allow toggling column visibility */ | ||
| hidable?: boolean | ||
| /** when provided, an info icon will be rendered next to the column label, upon hovering on which the tooltip will be revealed */ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,6 +79,8 @@ export interface TableViewHeader<Key extends string = string> { | |
| label?: string | ||
| /** This property defines whether sort icon should be displayed next to the column header and whether the column header will emit sort event upon clicking on it */ | ||
| sortable?: boolean | ||
| /** When provided, determines the intial arrow direction on the column */ | ||
| initialSort?: SortColumnOrder | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's already a |
||
| /** Allow toggling column visibility */ | ||
| hidable?: boolean | ||
| /** When provided, an info icon will be rendered next to the column label, upon hovering on which the tooltip will be revealed */ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's already a
sortColumnOrderprop exposed viatablePreferences- shouldn't that be sufficient?