API Reference / @gtkx/react / config / ElementConfig
Type Alias: ElementConfig<T>
ElementConfig<
T> =object
Defined in: reconciler/registry.d.ts:73
How one GLib type is rendered. component, props and omittedProps are inert at runtime; they are read only by codegen.
Type Parameters
T
T extends GObject.Object = GObject.Object
Properties
behaviors?
optionalbehaviors?:ElementBehavior<T>[]
Defined in: reconciler/registry.d.ts:77
Behaviors bound to the type, consulted in registration order and inherited by its subtypes.
component?
optionalcomponent?:ModuleExport
Defined in: reconciler/registry.d.ts:79
Component that wraps the generated element.
isLazy?
optionalisLazy?:boolean
Defined in: reconciler/registry.d.ts:75
The element has no GObject of its own; its parent container creates one, as it does for pages.
omittedProps?
optionalomittedProps?:string[]
Defined in: reconciler/registry.d.ts:83
GObject properties to leave out of the generated props, such as those a behavior writes from children.
props?
optionalprops?:ModuleExport
Defined in: reconciler/registry.d.ts:81
Base props interface the generated props extend.