Layout blocks (columns, grid).
Access:
app.layout
app.getModule('layout')
app.invoke('layout.method', …)
open#
Opens layout pattern selection dropdown.
Parameters:
- params (
object) — command or form parameters - button (
HTMLElement | string) — toolbar or UI button element - el (
HTMLElement | string) — DOM element
app.layout.open({}, { button });
insert#
Inserts a layout block with the given pattern.
Parameters:
- pattern (
string) — layout pattern id
Returns: Block|null
app.layout.insert({ pattern: '2col' });