跳到主要内容
版本:Next

Class: SearchModel

molecule.model.SearchModel

Implements

Constructors

constructor

new SearchModel(headerToolBar?, searchAddons?, replaceAddons?, result?, value?, replaceValue?, replaceMode?, isCaseSensitive?, isWholeWords?, isRegex?, preserveCase?, validationInfo?)

Parameters

NameTypeDefault value
headerToolBarIActionBarItemProps<any>[][]
searchAddonsIActionBarItemProps<any>[][]
replaceAddonsIActionBarItemProps<any>[][]
resultnever[][]
valuestring''
replaceValuestring''
replaceModebooleanfalse
isCaseSensitivebooleanfalse
isWholeWordsbooleanfalse
isRegexbooleanfalse
preserveCasebooleanfalse
validationInfoObjectundefined
validationInfo.textstringundefined
validationInfo.type"warning" | "info" | "error"undefined

Defined in

model/workbench/search.tsx:44

Properties

headerToolBar

headerToolBar: IActionBarItemProps<any>[]

Implementation of

ISearchProps.headerToolBar

Defined in

model/workbench/search.tsx:28


isCaseSensitive

isCaseSensitive: boolean = false

Implementation of

ISearchProps.isCaseSensitive

Defined in

model/workbench/search.tsx:36


isRegex

isRegex: boolean = false

Implementation of

ISearchProps.isRegex

Defined in

model/workbench/search.tsx:35


isWholeWords

isWholeWords: boolean = false

Implementation of

ISearchProps.isWholeWords

Defined in

model/workbench/search.tsx:37


preserveCase

preserveCase: boolean = false

Implementation of

ISearchProps.preserveCase

Defined in

model/workbench/search.tsx:38


replaceAddons

replaceAddons: IActionBarItemProps<any>[]

Implementation of

ISearchProps.replaceAddons

Defined in

model/workbench/search.tsx:30


replaceMode

replaceMode: boolean = false

Implementation of

ISearchProps.replaceMode

Defined in

model/workbench/search.tsx:34


replaceValue

replaceValue: string = ''

Implementation of

ISearchProps.replaceValue

Defined in

model/workbench/search.tsx:33


result

result: ITreeNodeItemProps<any>[] = []

Implementation of

ISearchProps.result

Defined in

model/workbench/search.tsx:31


searchAddons

searchAddons: IActionBarItemProps<any>[]

Implementation of

ISearchProps.searchAddons

Defined in

model/workbench/search.tsx:29


validationInfo

validationInfo: Object

Type declaration

NameType
textstring
type"warning" | "info" | "error"

Implementation of

ISearchProps.validationInfo

Defined in

model/workbench/search.tsx:39


value

value: string = ''

Implementation of

ISearchProps.value

Defined in

model/workbench/search.tsx:32