A registered name can be used as layout in style(). Custom names start
with custom_ to keep built-in names reserved.
Arguments
- name
A unique
custom_name.- arrange
function(children, inner, parent_style)returning oneregion()per child.- measure
function(children, parent_style)returningwidth()andheight(width)functions.- replace
Replace an existing registration of
name? Packages that register in.onLoad()can passTRUEso that reloading them works. Built-in layouts can never be replaced (their names do not start withcustom_).