Module h2o_wave.ui_ext
Functions
box
def box(zone: str, order: Optional[int] = None, size: Union[str, int, None] = None, width: Optional[str] = None, height: Optional[str] = None) ‑> str
Create a specification for card's box()
attribute. Indicates where and how to position a card.
Args
zone
- The name of the zone to place the card in.
order
- An number that determines the position of this card relative to other cards in the same zone. Cards in the same zone are sorted in ascending
order
and then placed left to right (or top to bottom). size
- A number that indicates the ratio of available width or height occupied by this card. Defaults to 1 if size, width and height are not provided.
width
- The width of this card, e.g.
200px
,50%
, etc. height
- The height of this card, e.g.
200px
,50%
, etc.
Returns
A string intended to be used as a card's box()
attribute.
boxes
def boxes(*args: str) ‑> str