Skip to content

Expose table columns and filters for programmatic usage. #1512

@DavidVanDeursen

Description

@DavidVanDeursen

Description

Allow the tableColumns and filters properties inside Table.vue to be used programmatically just like rows currently is. I think this would just require them to be added to the defineExpose of Table.vue.

Why Oruga need this feature

For tableColumns there is currently no way to easily retrieve the Field and Labels of every column when using o-table-column slots. For example we want to copy a table to clipboard which requires information about both the Labels for a header and the Fields of the columns to then retrieve the correct data from the rows.

For filters it would allow you to for example add filters when loading a page based on the url, or you could use it to filter on every column at the same time using a seperate input field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovements to existing features and functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions