Amazon Vinyl
    Preparing search index...

    Variable hookExtensionsConst

    hookExtensions: {
        classList: (
            element: HTMLElement,
            classList: readonly (Maybe<string> | ObservableValue<Maybe<string>>)[],
        ) => Unsubscribe;
        onConnect: (
            target: HTMLElement,
            callback: (node: HTMLElement) => void | Maybe<Unsubscribe>,
        ) => Unsubscribe;
        ontouchmove: HookExtension<
            ((this: GlobalEventHandlers, ev: TouchEvent) => any)
            | null
            | undefined,
        >;
        ontouchstart: HookExtension<
            ((this: GlobalEventHandlers, ev: TouchEvent) => any)
            | null
            | undefined,
        >;
        onwheel: HookExtension<
            ((this: GlobalEventHandlers, ev: WheelEvent) => any)
            | null,
        >;
        style: (element: HTMLElement, style: StyleProp) => void;
        visible: (
            element: HTMLElement,
            visible: boolean | ObservableValue<boolean>,
        ) => void;
    } = ...

    A map of custom jsx properties to be used in hook extensions.

    Type Declaration

    • ReadonlyclassList: (
          element: HTMLElement,
          classList: readonly (Maybe<string> | ObservableValue<Maybe<string>>)[],
      ) => Unsubscribe
    • ReadonlyonConnect: (
          target: HTMLElement,
          callback: (node: HTMLElement) => void | Maybe<Unsubscribe>,
      ) => Unsubscribe
    • Readonlyontouchmove: HookExtension<
          ((this: GlobalEventHandlers, ev: TouchEvent) => any)
          | null
          | undefined,
      >
    • Readonlyontouchstart: HookExtension<
          ((this: GlobalEventHandlers, ev: TouchEvent) => any)
          | null
          | undefined,
      >
    • Readonlyonwheel: HookExtension<((this: GlobalEventHandlers, ev: WheelEvent) => any) | null>
    • Readonlystyle: (element: HTMLElement, style: StyleProp) => void
    • Readonlyvisible: (element: HTMLElement, visible: boolean | ObservableValue<boolean>) => void