Skip to content

Commit

Permalink
Run dynamic argument conversion when using run_grid_method / run_row_…
Browse files Browse the repository at this point in the history
…method (#3866)

Following up with #3757

Do dynamic property conversion when using `run_grid_method` /
`run_row_method`, so you can dynamically add / change callbacks and
other things using properties with `:` prefix.
  • Loading branch information
xaptronic authored Oct 14, 2024
1 parent f345f53 commit 9fd61dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nicegui/elements/aggrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ export default {
this.api.addGlobalListener(this.handle_event);
},
run_grid_method(name, ...args) {
convertDynamicProperties(args, true);
return runMethod(this.api, name, args);
},
run_row_method(row_id, name, ...args) {
convertDynamicProperties(args, true);
return runMethod(this.api.getRowNode(row_id), name, args);
},
handle_event(type, args) {
Expand Down

0 comments on commit 9fd61dd

Please sign in to comment.