Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
Labels
Javascript FrontendPull requests that update Javascript code
@ScottKemp

Description

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

    Javascript FrontendPull requests that update Javascript code

    Type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /