Skip to main content
Version: 1.x

Interface: ISearchProps

molecule.component.ISearchProps

Hierarchy

  • ComponentProps<any>

    ISearchProps

Properties

addons

Optional addons: (undefined | IActionBarItemProps<any>[])[]

Defined in

components/search/index.tsx:22


className

Optional className: string

Defined in

components/search/index.tsx:19


placeholders

Optional placeholders: string[]

Defined in

components/search/index.tsx:21


style

Optional style: CSSProperties

Defined in

components/search/index.tsx:18


validationInfo

Optional validationInfo: string | { text: string ; type: "warning" | "info" | "error" }

Defined in

components/search/index.tsx:23


values

Optional values: SearchValues

Defined in

components/search/index.tsx:20

Methods

onAddonClick

Optional onAddonClick(addon): void

Parameters

NameType
addonany

Returns

void

Defined in

components/search/index.tsx:24


onButtonClick

Optional onButtonClick(status): void

Parameters

NameType
statusboolean

Returns

void

Defined in

components/search/index.tsx:25


onChange

Optional onChange(value?): void

onChange only oberseves the values of inputs

first value is from query input

second value is from replace input

Parameters

NameType
value?SearchValues

Returns

void

Defined in

components/search/index.tsx:33


onSearch

Optional onSearch(value?): void

onSearch always be triggered behind onChange or onClick

Parameters

NameType
value?SearchValues

Returns

void

Defined in

components/search/index.tsx:37