Skip to content

[Feat]: Need to Programatically (JS) Select Rows in a Table #1951

@ScottKemp

Description

@ScottKemp

Is your feature request related to a problem? Please describe.
Tables are the heart of low coding and having as much JS access to them is critical. I was surprised to see that we cannot change the table selection.

Describe the solution you'd like
Add a JS function to the table component:
setSelectionWithIndex( [0,4,5] ). It should be able to also take a NULL to clear the selection, and a single number to select a single row

setSelectionWithID( ["my_id_1", "my_id_2", "my_id_5" ] ). It should be able to also take a NULL to clear the selection, and a single number to select a single row

Describe alternatives you've considered
Any alternatives are very ugly and hacky.

Additional context
This is useful in many contexts and I have seen multiple request it in discord. A common ui use case would be to have a table of "contacts". Then a button that "Adds New Contact". This would append a record to the contact db, refresh the table, and then select the newly created contact, rather than potentially not even seeing it on the refresh.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions