Преглед изворни кода

Merge pull request #930 from CatamountJack/main

Use snake_case style arguments for ui.notify()
Falko Schindler пре 2 година
родитељ
комит
69e78805b1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      website/more_documentation/notify_documentation.py

+ 1 - 1
website/more_documentation/notify_documentation.py

@@ -17,7 +17,7 @@ def more() -> None:
         ui.button('warning', on_click=lambda: ui.notify('warning', type='warning'))
         ui.button('warning', on_click=lambda: ui.notify('warning', type='warning'))
 
 
     @text_demo('Multiline Notifications', '''
     @text_demo('Multiline Notifications', '''
-        To allow a notification text to span multiple lines, it is sufficient to pass the `mutliLine` keyword with `True`.
+        To allow a notification text to span multiple lines, it is sufficient to set `multi_line=True`.
         If manual newline breaks are required (e.g. `\n`), you need to define a CSS style and pass it to the notification as shown in the example.
         If manual newline breaks are required (e.g. `\n`), you need to define a CSS style and pass it to the notification as shown in the example.
     ''')
     ''')
     def multiline():
     def multiline():