Skip to content

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?

optional behaviors?: ElementBehavior<T>[]

Defined in: reconciler/registry.d.ts:77

Behaviors bound to the type, consulted in registration order and inherited by its subtypes.


component?

optional component?: ModuleExport

Defined in: reconciler/registry.d.ts:79

Component that wraps the generated element.


isLazy?

optional isLazy?: 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?

optional omittedProps?: 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?

optional props?: ModuleExport

Defined in: reconciler/registry.d.ts:81

Base props interface the generated props extend.

Released under the MPL-2.0 License.