Skip to content

Access to changed rows in ui.table for save method #905

Closed Answered by falkoschindler
bobanovo asked this question in Q&A
Discussion options

You must be logged in to vote

The delete button emits a "delete" event, which is subscribed to with table.on('delete',deleteRec) and handled in the deleteRec function.
Now you need to emit something like update events, subscribe to them and use the event handler to update the table rows.
The name column already emits a "save" event. But it isn't listened to. I would use the event name "update" instead to avoid confusion with the save function. The age column is missing such an event.

But sure, a CRUD example with ui.table would be helpful.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by falkoschindler
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants