Class SmartSuggestItem

Properties

item: Item

(prop) Item to display

active: boolean

(prop) Whether the item is active, either hovered or active through keyboard navigation

onSelect?: ((item) => any)

Type declaration

    • (item): any
    • Parameters

      Returns any

$: ComponentInternalInstance
$data: {}

Type declaration

    $props: Partial<{}> & Omit<{
        item: Item;
        active: boolean;
        onSelect?: ((item) => any);
    } & VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
        item: Item;
        active: boolean;
    }>>> & {
        onSelect?: ((item) => any);
    }, never>
    $attrs: Data
    $refs: Data
    $slots: Readonly<InternalSlots>
    $root: null | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>
    $parent: null | ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>
    $emit: ((event, ...args) => void)

    Type declaration

      • (event, ...args): void
      • Parameters

        • event: "select"
        • Rest ...args: [item: Item]

        Returns void

    $el: any
    $options: ComponentOptionsBase<Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
        item: Item;
        active: boolean;
    }>>> & {
        onSelect?: ((item) => any);
    }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
        select: ((item) => void);
    }, string, {}, {}, string, {}> & MergedComponentOptionsOverride
    $forceUpdate: (() => void)

    Type declaration

      • (): void
      • Returns void

    $nextTick: (<T, R>(this, fn?) => Promise<Awaited<R>>)

    Type declaration

      • <T, R>(this, fn?): Promise<Awaited<R>>
      • Type Parameters

        • T = void

        • R = void

        Parameters

        • this: T
        • Optional fn: ((this) => R)
            • (this): R
            • Parameters

              • this: T

              Returns R

        Returns Promise<Awaited<R>>

    Methods

    • Type Parameters

      • T extends string | ((...args) => any)

      Parameters

      • source: T
      • cb: T extends ((...args) => R)
            ? ((...args) => any)
            : ((...args) => any)
      • Optional options: WatchOptions<boolean>

      Returns WatchStopHandle