\Charcoal\Ui\LayoutLayoutAwareInterface

Defines a layout-aware entity.

Manages UI items through the layout, which is created with a \Charcoal\Ui\Layout\LayoutBuilder.

Summary

Methods
Constants
setLayoutBuilder()
setLayout()
layout()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

setLayoutBuilder()

setLayoutBuilder(\Charcoal\Ui\Layout\LayoutBuilder  $builder) : \Charcoal\Ui\Layout\DashboardInterface

Parameters

\Charcoal\Ui\Layout\LayoutBuilder $builder

The layout builder, to create customized layout object(s).

Returns

\Charcoal\Ui\Layout\DashboardInterface —

Chainable

setLayout()

setLayout(\Charcoal\Ui\Layout\LayoutInterface|array  $layout) : \Charcoal\Ui\Layout\DashboardInterface

Parameters

\Charcoal\Ui\Layout\LayoutInterface|array $layout

The layout object or structure.

Returns

\Charcoal\Ui\Layout\DashboardInterface —

Chainable