Skip to content

Commit

Permalink
use get_selected_rows() in local file picker example (fixes #3695)
Browse files Browse the repository at this point in the history
  • Loading branch information
falkoschindler committed Sep 8, 2024
1 parent 6029617 commit 4ffe19f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/local_file_picker/local_file_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,5 +78,5 @@ def handle_double_click(self, e: events.GenericEventArguments) -> None:
self.submit([str(self.path)])

async def _handle_ok(self):
rows = await ui.run_javascript(f'getElement({self.grid.id}).gridOptions.api.getSelectedRows()')
rows = await self.grid.get_selected_rows()
self.submit([r['path'] for r in rows])

0 comments on commit 4ffe19f

Please sign in to comment.