x4js - v2.2.49
    Preparing search index...

    Interface SwitchProps

    Base properties for all components.

    interface SwitchProps {
        attrs?: Record<string, string | number | boolean>;
        checked?: boolean;
        cls?: string;
        content?: ComponentContent;
        disabled?: boolean;
        dom_events?: GlobalDOMEvents;
        existingDOM?: HTMLElement;
        flex?: number | boolean;
        height?: string | number;
        hidden?: boolean;
        id?: string;
        label: string;
        ns?: string;
        ref?: RefType<any>;
        style?: Partial<CSSStyleDeclaration>;
        tag?: string;
        tooltip?: string;
        value?: string;
        width?: string | number;
    }

    Hierarchy (View Summary)

    Index
    attrs?: Record<string, string | number | boolean>

    HTML attributes.

    checked?: boolean
    cls?: string

    Additional CSS classes.

    Child content (components, strings, or HTML).

    disabled?: boolean

    Component is initialy disabled.

    dom_events?: GlobalDOMEvents

    DOM event listeners.

    existingDOM?: HTMLElement

    Existing DOM element to wrap.

    flex?: number | boolean

    Enables flex layout (boolean) or sets flex-grow (number).

    height?: string | number

    Height (px or string like "50%").

    hidden?: boolean

    Component is initialy hidden.

    id?: string

    Element ID.

    label: string
    ns?: string

    Namespace for SVG/MathML elements.

    ref?: RefType<any>

    Reference to the component instance.

    style?: Partial<CSSStyleDeclaration>

    Inline CSS styles.

    tag?: string

    HTML tag name (default: "div").

    tooltip?: string

    Tooltip text.

    value?: string
    width?: string | number

    Width (px or string like "50%" or "3em").