API referencelayout
GridPanel
CSS grid-backed Lumino panel for placing children in grid cells.
Attributes
attributelayout_kind= t.Unicode('grid').tag(sync=True)attributecolumns= t.Unicode('1fr 1fr').tag(sync=True)attributerows= t.Unicode('auto').tag(sync=True)attributegap= t.Unicode('8px').tag(sync=True)attributeareas= t.List(t.Dict(), default_value=[]).tag(sync=True)Functions
constructor__init__(widgets=None, *, titles=None, keys=None, columns='1fr 1fr', rows='auto', gap=8, areas=None, width='100%', height=420, resizable=True, fit_content=False) -> NoneparamwidgetsChildInput= NoneChild widgets or keyed child mapping.
paramtitlesTitleInput= NoneOptional labels associated with children.
paramkeysIterable[str] | None= NoneStable child keys for iterable widgets.
paramcolumnsstr= '1fr 1fr'CSS grid-template-columns value.
paramrowsstr= 'auto'CSS grid-template-rows value.
paramgapint | float | str | None= 8CSS grid gap. Numeric values use shared anylumino size rules.
paramareasIterable[dict[str, Any]] | None= NonePer-child placement metadata. Each item can describe CSS grid placement such as row, column, or area values understood by the frontend.
paramwidthint | float | str | None= '100%'Widget width.
paramheightint | float | str | None= 420Widget height.
paramresizablebool= TrueWhether the grid gets a notebook resize handle.
paramfit_contentbool= FalseReturns
None