Search Box Properties

Type Parameters

Hierarchy

  • ISearchBoxProps

Properties

assignTo?: ((obj) => void)

Type declaration

className?: string

The class name to apply to the element.

disabled?: boolean

True to disable the component.

el?: HTMLElement

The element to render the form to.

items?: T[]

The items for the search box.

label?: string

The label.

maxResults?: number

Limits the results to a maximum number.

minCharSearch?: number

The minimum number of characters to enter before search occurs.

multi?: boolean

True to allow multiple users to be selected.

onChange?: ((obj) => void)

Type declaration

    • (obj): void
    • The change event.

      Parameters

      • obj: T[]

      Returns void

onItemAdded?: ((el, item) => void)

Type declaration

    • (el, item): void
    • The render event when an item is added.

      Parameters

      • el: HTMLElement
      • item: T

      Returns void

onItemsLoaded?: ((items?) => void)

Type declaration

    • (items?): void
    • The event called after the items are loaded.

      Parameters

      • Optional items: T[]

      Returns void

onItemsLoading?: (() => T[] | PromiseLike<T[]>)

Type declaration

    • (): T[] | PromiseLike<T[]>
    • Use this event to set the items dynamically.

      Returns T[] | PromiseLike<T[]>

onSearchItems?: ((filter?) => T[] | PromiseLike<T[]>)

Type declaration

    • (filter?): T[] | PromiseLike<T[]>
    • The search event.

      Parameters

      • Optional filter: string

      Returns T[] | PromiseLike<T[]>

placeholder?: string

The placeholder text. (Default value is "Search")

readOnly?: boolean

True to make the component read-only.

value?: string | number | (string | number)[]

The selected users.

Generated using TypeDoc