Sfoglia il codice sorgente

add possible values for `align_items` to the docstrings (fixes #3602)

Falko Schindler 9 mesi fa
parent
commit
40423059cb
3 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 1 1
      nicegui/elements/card.py
  2. 1 1
      nicegui/elements/column.py
  3. 1 1
      nicegui/elements/row.py

+ 1 - 1
nicegui/elements/card.py

@@ -21,7 +21,7 @@ class Card(Element):
         If you want the original behavior, use the `tight` method.
         If you want the original behavior, use the `tight` method.
         If you want the padding and borders for nested children, move the children into another container.
         If you want the padding and borders for nested children, move the children into another container.
 
 
-        :param align_items: alignment of the items in the card (default: `None`)
+        :param align_items: alignment of the items in the card ("start", "end", "center", "baseline", or "stretch"; default: `None`)
         """
         """
         super().__init__('q-card')
         super().__init__('q-card')
         self._classes.append('nicegui-card')
         self._classes.append('nicegui-card')

+ 1 - 1
nicegui/elements/column.py

@@ -14,7 +14,7 @@ class Column(Element):
         Provides a container which arranges its child in a column.
         Provides a container which arranges its child in a column.
 
 
         :param wrap: whether to wrap the content (default: `False`)
         :param wrap: whether to wrap the content (default: `False`)
-        :param align_items: alignment of the items in the column (default: `None`)
+        :param align_items: alignment of the items in the column ("start", "end", "center", "baseline", or "stretch"; default: `None`)
         """
         """
         super().__init__('div')
         super().__init__('div')
         self._classes.append('nicegui-column')
         self._classes.append('nicegui-column')

+ 1 - 1
nicegui/elements/row.py

@@ -14,7 +14,7 @@ class Row(Element):
         Provides a container which arranges its child in a row.
         Provides a container which arranges its child in a row.
 
 
         :param wrap: whether to wrap the content (default: `True`)
         :param wrap: whether to wrap the content (default: `True`)
-        :param align_items: alignment of the items in the row (default: `None`)
+        :param align_items: alignment of the items in the row ("start", "end", "center", "baseline", or "stretch"; default: `None`)
         """
         """
         super().__init__('div')
         super().__init__('div')
         self._classes.append('nicegui-row')
         self._classes.append('nicegui-row')