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

[Feature] sort support don't execute inner sort logic #230

Closed
fangsmile opened this issue Aug 18, 2023 · 0 comments · Fixed by #231
Closed

[Feature] sort support don't execute inner sort logic #230

fangsmile opened this issue Aug 18, 2023 · 0 comments · Fixed by #231

Comments

@fangsmile
Copy link
Contributor

What problem does this feature solve?

sort support don't execute inner sort logic

What does the proposed API look like?

  tableInstance.on('sort_click', args => {
    tableInstance.updateSortState(
      {
        field: 'id', //args.field,
        order: Date.now() % 3 === 0 ? 'desc' : Date.now() % 3 === 1 ? 'asc' : 'normal'
      },
      false
    );
    return false; //return false代表不执行内部排序逻辑
  });
@fangsmile fangsmile linked a pull request Aug 18, 2023 that will close this issue
21 tasks
fangsmile added a commit that referenced this issue Aug 21, 2023
…xecute-inner-sort-logic

feat: sort support don't execute inner sort logic #230
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant