Skip to content

Table component: Update docs and add prop for default column sorting

Now that we are implementing sortable columns in GitLab via sortable: true, there are a few things that could help future implementations of this component when sorting.

  1. Add docs for how to do sorting
  2. Add a prop for defaultColumn, since there's some logic that could be extracted out

Here is the MR where the sort component is implemented for reference: gitlab-org/gitlab!32478 (merged)