ComponentOptions: {
    dataDeepCopy?: DeepCopyKind;
    directSlots?: boolean;
    dynamicSlots?: boolean;
    externalComponent?: boolean;
    extraStyleScope?: StyleScopeId | null;
    hostNodeTagName?: string;
    idPrefixGenerator?: ((this) => string) | null;
    listenerChangeLifetimes?: boolean;
    multipleSlots?: boolean;
    propertyEarlyInit?: boolean;
    propertyPassingDeepCopy?: DeepCopyKind;
    pureDataPattern?: RegExp | null;
    reflectToAttributes?: boolean;
    styleScope?: StyleScopeId;
    templateEngine?: TemplateEngine;
    useMethodCallerListeners?: boolean;
    virtualHost?: boolean;
    writeFieldsToNode?: boolean;
    writeIdToDOM?: boolean;
}

Options for a component

Type declaration

  • Optional dataDeepCopy?: DeepCopyKind

    Decide how to deep copy component data when updates

  • Optional directSlots?: boolean

    Enable direct slots or not

  • Optional dynamicSlots?: boolean

    Enable dynamic slots or not

  • Optional externalComponent?: boolean

    Is external component or not

  • Optional extraStyleScope?: StyleScopeId | null

    An extra style scope assigned to the component

  • Optional hostNodeTagName?: string

    The host node tag name (only valid in external components)

  • Optional idPrefixGenerator?: ((this) => string) | null

    Generate a prefix for ID written to backend node

  • Optional listenerChangeLifetimes?: boolean

    Enable listener change events or not

  • Optional multipleSlots?: boolean

    Enable multiple slots or not

  • Optional propertyEarlyInit?: boolean

    Init component with property values or not

  • Optional propertyPassingDeepCopy?: DeepCopyKind

    Decide how to deep copy when a property changes

  • Optional pureDataPattern?: RegExp | null

    Filter some fields out when applying to templates

  • Optional reflectToAttributes?: boolean

    Write property values of components to backend with setAttribute

  • Optional styleScope?: StyleScopeId

    The style scope

  • Optional templateEngine?: TemplateEngine

    The template engine

  • Optional useMethodCallerListeners?: boolean

    Use the methods in method caller as the event handlers or not

  • Optional virtualHost?: boolean

    Component host node is virtual or not

  • Optional writeFieldsToNode?: boolean

    Allow properties and methods to be able to visit directly in component instance

  • Optional writeIdToDOM?: boolean

    Write node ID to backend node