Browse Source

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

Falko Schindler 9 months ago
parent
commit
40423059cb
3 changed files with 3 additions and 3 deletions
  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 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')
         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.
 
         :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')
         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.
 
         :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')
         self._classes.append('nicegui-row')