Skip to content

feat: Column configuration improvements #166

@Sylvain-Wehrum

Description

@Sylvain-Wehrum

Feature request

The column configuration is missing some features and has a few usability issues.

Description: Column configuration buttons

The goal is to

  • add support for saving/editing/deleting column configurations
  • keep the design as close to clarity data table column configuration as possible

Possible Solution

Two Buttons in the bottom left of the table, one for editing the current configuration, the other for custom actions for the current configuration or selecting a different configuration

First button: Edit columns (Column Icon): Edit current configuration

  • only show button if [allColumns] is provided
    image
  • (configurationChanged) event will return the updated configuration when the user clicks the update button and no event when the user clicks the cancel button
  • if [autoUpdateCurrentConfiguration] is not explicitly set to false, the datatable will update the displayed columns when sending the configurationChanged-Event

Second button: Configuration actions and selection (Name of current configuration)
image

  • only show button if [configurations] has more than one configuration or at least one action
  • display [displayedConfiguration].label as label of the button
  • Actions: Provided by the application in [configurations].actions
  • Configurations: list of all current configurations to choose from provided in [configurations].configurations, except for the currentConfiguration
  • actions and configurations will be separated by a small line
  • user clicks an action -> trigger (configurationAction) Event (with the name of the action and the current configuration)
  • user clicks a configuration -> trigger (configurationSelected) event (with the selected configuration). if [autoUpdateCurrentConfiguration] is not explicitly set to false, the datatable will update the displayed columns when sending the configurationSelected-Event

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions