소스 검색

add documentation for label in ui.select (fixes #1851)

Falko Schindler 1 년 전
부모
커밋
5c9be76e8e
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      nicegui/elements/select.py

+ 1 - 0
nicegui/elements/select.py

@@ -25,6 +25,7 @@ class Select(ChoiceElement, DisableableElement, component='select.js'):
         After manipulating the options, call `update()` to update the options in the UI.
 
         :param options: a list ['value1', ...] or dictionary `{'value1':'label1', ...}` specifying the options
+        :param label: the label to display above the selection
         :param value: the initial value
         :param on_change: callback to execute when selection changes
         :param with_input: whether to show an input field to filter the options