create_layout()
Create a new layout container.
Usage
create_layout(orientation="horizontal")Parameters
orientation: str = "horizontal"-
The layout orientation, by default “horizontal”.
Returns
dict-
A dictionary representing the created layout.
Examples
>>> create_layout("vertical")
{'orientation': 'vertical', 'children': []}