kolibri-design-system icon indicating copy to clipboard operation
kolibri-design-system copied to clipboard

Create prototype (non-accessible) SortableTable

Open marcellamaki opened this issue 3 years ago • 3 comments

Overview

This is an initial prototyping issue for the creation of a reusable KSortableTable component. For context, please see the epic.

Expect Component API

The API should build on the current CoreTable and KDP's SortableHeader. This would likely require most of the existing props, although they could be renamed or shared (if a similar prop is currently used in both components).

header and body slots can be used, as in CoreTable, so that the table can be created to suit the data being displayed.

Core Table's props

selectable: {
        type: Boolean,
        default: false,
        required: false,
      },
      emptyMessage: {
        type: String,
        default: null,
      },

SortableHeader's props

title: {
        type: String,
        required: true,
      },
      column: {
        type: String,
        required: true,
      },
      pos: {
        type: String,
        default: 'right',
      },
      sort: {
        type: Boolean,
        default: true,
      },

During this stage, the visual design of the basic CoreTable component does not need to change.

Acceptance Criteria

  • Creation of a prototype table that contains a sortable header which accurately updates table content when clicking sorting for ascending and descending
  • At this stage, accessibility and design specifications are not acceptance criteria

marcellamaki avatar May 20 '22 15:05 marcellamaki

Howdy! I put together some thoughts on the API design for this component here:

Notes on new table component

Feel free to take, leave, or modify :)

indirectlylit avatar Jun 01 '22 17:06 indirectlylit

can i work on this?

nick2432 avatar Jan 02 '24 11:01 nick2432

Hi @nick2432, I'm sorry, this is not ready to be developed yet. We recommend issues labeled as "help wanted" or "good first issue".

We currently have contributing opportunities in three repositories. You can see the contributing guidelines including links to issues suitable for contribution for each repository here:

MisRob avatar Jan 09 '24 14:01 MisRob

Closed by GSOC KTable project

MisRob avatar Oct 16 '24 08:10 MisRob