Skip to content

Interface: LayoutDefaultsContext ​

Experimental

Helpers passed to layout-level supplyLayoutDefaults hooks.

Properties ​

PropertyModifierTypeDescription
fullDatareadonlyreadonly FullTrace[]Experimental The defaulted traces.
templatereadonlyTemplate | nullExperimental The resolved template, if any.

Methods ​

coerce() ​

ts
coerce<T>(path, dflt?): T;

Experimental

Coerce a layout attribute (by path) with the same precedence as trace coerce.

Type Parameters ​

Type ParameterDefault type
Tunknown

Parameters ​

ParameterType
pathstring
dflt?unknown

Returns ​

T

Released under the MIT License.