shapelets.apps.DataApp.horizontal_layout#

DataApp.horizontal_layout(title: str = None, panel_id: str = None, horizontal_align: Optional[Literal['start', 'center', 'end']] = 'start', vertical_align: Optional[Literal['start', 'center', 'end']] = 'start', **additional) HorizontalLayoutWidget#

Defines a layout where widgets are arranged side by side horizontally.

Parameters:
titlestr, optional

String with the Panel title. It will be placed on top of the Panel.

panel_idstr, optional

Panel ID.

horizontal_alignstr, optional

Select how widgets are align horizontally: start, center, end. Default: start.

vertical_alignstr, optional

Select how widgets are align vertically: start, center, end. Default: start.

Returns:
HorizontalLayout.

Examples

>>> hl = app.horizontal_layout()
>>> # Create buttons and place multiple text inputs in the horizontal layout
>>> txt1 = app.text_input("Text input #1")
>>> hl.place(txt1)

Bind compatibility

You can bind this widget with this:

Bindable as

You can bind this widget as:

Currently this widget cannot be used as input in a binding function.