Skip to content
Discussion options

You must be logged in to vote

Hi @AnonyDon,

Nowadays the generic event registration .on() returns GenericEventArguments instead of a plain dictionary. You can access the argument dictionary like this:

from nicegui import events

...

def rename(e: events.GenericEventArguments) -> None:
    for row in rows:
        if row['id'] == e.args['id']:
            row['name'] = e.args['name']
    ui.notify(f'Table.rows is now: {table.rows}')

See https://nicegui.io/documentation/table#table_with_drop_down_selection for a very similar example.

Regarding your second question: How does it relate to the code above? Your table has no selection enabled, so there are not selected rows. If it is unrelated, it might be better to post a …

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@AnonyDon
Comment options

@AnonyDon
Comment options

@falkoschindler
Comment options

Answer selected by AnonyDon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants