Skip to content
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

Add data and multiSortMeta options to sortFunction on DataTable #3352

Closed
mertsincan opened this issue Sep 22, 2022 · 0 comments
Closed

Add data and multiSortMeta options to sortFunction on DataTable #3352

mertsincan opened this issue Sep 22, 2022 · 0 comments
Assignees
Labels
Core Team Issue or pull request has been *opened* by a member of Core Team Type: Breaking Change Issue contains a breaking change related to a specific component Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@mertsincan
Copy link
Member

const customSortFunction = ({ data, field, order, multiSortMeta }) => {
     ....
     return data;
}

<Column sortFunction={customSortFunction} sortable></Column>

Replace rowData option with data option.

@mertsincan mertsincan added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add Type: Breaking Change Issue contains a breaking change related to a specific component Core Team Issue or pull request has been *opened* by a member of Core Team labels Sep 22, 2022
@mertsincan mertsincan added this to the 8.6.0 milestone Sep 22, 2022
@mertsincan mertsincan self-assigned this Sep 22, 2022
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 22, 2022
@mertsincan mertsincan removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Team Issue or pull request has been *opened* by a member of Core Team Type: Breaking Change Issue contains a breaking change related to a specific component Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

1 participant