Browse Source

code review

Falko Schindler 1 year ago
parent
commit
532ff8e75a
1 changed files with 2 additions and 3 deletions
  1. 2 3
      website/more_documentation/aggrid_documentation.py

+ 2 - 3
website/more_documentation/aggrid_documentation.py

@@ -156,7 +156,7 @@ def more() -> None:
 
 
     @text_demo('Respond to an AG Grid event', '''
     @text_demo('Respond to an AG Grid event', '''
         All AG Grid events are passed through to NiceGUI via the AG Grid global listener.
         All AG Grid events are passed through to NiceGUI via the AG Grid global listener.
-        These events can then be subscribed to using the on function.
+        These events can be subscribed to using the `.on()` method.
     ''')
     ''')
     def aggrid_with_html_columns():
     def aggrid_with_html_columns():
         ui.aggrid({
         ui.aggrid({
@@ -169,5 +169,4 @@ def more() -> None:
                 {'name': 'Bob', 'age': 21},
                 {'name': 'Bob', 'age': 21},
                 {'name': 'Carol', 'age': 42},
                 {'name': 'Carol', 'age': 42},
             ],
             ],
-            'rowSelection': 'multiple',
-        }).on("cellClicked", lambda event: ui.notify(f"Cell value: {event.args['value']}"))
+        }).on('cellClicked', lambda event: ui.notify(f'Cell value: {event.args["value"]}'))