AnyLumino
API referencelayout

LayoutWidget

Base class for keyed anywidget composition layouts.

LayoutWidget stores child widgets in a keyed map while syncing the frontend-ready widget views to the browser. Subclasses choose the Lumino layout that displays those children.

Set suppress_shortcuts to True to keep key presses inside the layout from triggering JupyterLab shortcuts, such as notebook command-mode keys, while focus is on content that is not a text field.

Attributes

attributewidgets
= ChildList(anywidget.WidgetTrait(), default_value=[]).tag(sync=True, to_json=_widget_list_to_json, from_json=_widget_list_from_json)
attributechild_keys
= t.List(t.Unicode(), default_value=[]).tag(sync=True)
attributetitles
= t.List(t.Unicode(), default_value=[]).tag(sync=True)
attributewidth
= t.Unicode('100%').tag(sync=True)
attributeheight
= t.Unicode('420px').tag(sync=True)
attributeresizable
= t.Bool(True).tag(sync=True)
attributescroll_x
= t.Bool(False).tag(sync=True)
attributescroll_y
= t.Bool(False).tag(sync=True)
attributechild_min_width
= t.Unicode('0px').tag(sync=True)
attributechild_min_height
= t.Unicode('0px').tag(sync=True)
attributefit_content
= t.Bool(False).tag(sync=True)
attributesuppress_shortcuts
= t.Bool(False).tag(sync=True)

On this page