Skip to content

[EuiTable] Simplify example demo setup #5837

@kartset

Description

@kartset

I was trying to add column sorting to the table and I couldn't find a proper example to do it. The example in the demoJS refers to a file named data_store which I guess is exporting a hook 'createDataStore'. Initially, I couldn't find the data_store file as I didn't know where to look for it but then it occurred to me and I looked into the GitHub repository for it. I start reading the file to see the contents of the file and thought of copying the relevant code from it. But there I found references to other files like comparators.ts. I was wondering is there any other way or any other example to look at for sorting or do I just have to find all the relevant files and copy code from them?

Metadata

Metadata

Assignees

Labels

documentationIssues or PRs that only affect documentation - will not need changelog entries

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