瀏覽代碼

remove async

Natan Keddem 1 年之前
父節點
當前提交
7ba481eab2
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      website/more_documentation/input_documentation.py

+ 3 - 3
website/more_documentation/input_documentation.py

@@ -16,14 +16,14 @@ def more() -> None:
         The `autocomplete` feature provides suggestions as you type, making input easier and faster.
         The `autocomplete` feature provides suggestions as you type, making input easier and faster.
         The parameter `options` is a list of strings that contains the available options that will appear.
         The parameter `options` is a list of strings that contains the available options that will appear.
     ''')
     ''')
-    async def autocomplete_demo():
+    def autocomplete_demo():
         options = ['AutoComplete', 'NiceGUI', 'Awesome']
         options = ['AutoComplete', 'NiceGUI', 'Awesome']
         ui.input(label='Text', placeholder='start typing', autocomplete=options)
         ui.input(label='Text', placeholder='start typing', autocomplete=options)
 
 
     @text_demo('Clearable', '''
     @text_demo('Clearable', '''
         The `clearable` prop from [Quasar](https://quasar.dev/) adds a button to the input that clears the text.    
         The `clearable` prop from [Quasar](https://quasar.dev/) adds a button to the input that clears the text.    
     ''')
     ''')
-    async def clearable():
+    def clearable():
         i = ui.input(value='some text').props('clearable')
         i = ui.input(value='some text').props('clearable')
         ui.label().bind_text_from(i, 'value')
         ui.label().bind_text_from(i, 'value')
 
 
@@ -32,7 +32,7 @@ def more() -> None:
         It is even possible to style the underlying input with `input-style` and `input-class` props
         It is even possible to style the underlying input with `input-style` and `input-class` props
         and use the provided slots to add custom elements.
         and use the provided slots to add custom elements.
     ''')
     ''')
-    async def styling():
+    def styling():
         ui.input(placeholder='start typing').props('rounded outlined dense')
         ui.input(placeholder='start typing').props('rounded outlined dense')
         ui.input('styling', value='some text') \
         ui.input('styling', value='some text') \
             .props('input-style="color: blue" input-class="font-mono"')
             .props('input-style="color: blue" input-class="font-mono"')