Rodja Trappe 2 năm trước cách đây
mục cha
commit
b26cfe859a
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      website/reference.py

+ 3 - 2
website/reference.py

@@ -554,8 +554,9 @@ The example code shows both methods for a `ui.chart`, where it is difficult to a
             chart.options['series'][0]['data'].clear()
             chart.options['series'][0]['data'].clear()
             ui.update(chart)
             ui.update(chart)
 
 
-        ui.button('Add', on_click=add)
-        ui.button('Clear', on_click=clear)
+        with ui.row():
+            ui.button('Add', on_click=add)
+            ui.button('Clear', on_click=clear)
 
 
     @example('''#### Async event handlers
     @example('''#### Async event handlers