column.py 420 B

1234567891011121314151617
  1. from ..element import Element
  2. class Column(Element):
  3. def __init__(self, *, wrap: bool = False) -> None:
  4. """Column Element
  5. Provides a container which arranges its child in a column.
  6. :param wrap: whether to wrap the content (default: `False`)
  7. """
  8. super().__init__('div')
  9. self._classes = ['nicegui-column']
  10. if wrap:
  11. self._classes.append('wrap')