File

projects/m2-core/src/lib/shared/ui-components/search/search-input/search-input.component.ts

Implements

OnInit

Metadata

Index

Properties
Methods
Inputs
Outputs
Accessors

Constructor

constructor(clientConfigService: ClientConfigService, globalModalsService: GlobalModalsService)
Parameters :
Name Type Optional
clientConfigService ClientConfigService No
globalModalsService GlobalModalsService No

Inputs

areToolsCollapsed
Type : boolean
autocomplete
Type : string
Default value : 'on'
borderBottom
Type : boolean
Default value : false
debounceInMs
Type : any
Default value : APP_SETTINGS.TEXT_SEARCH_DEBOUNCE_IN_MS
getCustomPropositionsFn
Type : (searchQuery?: string, noFilterOnValues?: boolean) => any
Default value : ((searchQuery?: string, noFilterOnValues?: boolean) => this.clientConfigService.getFullTextPropositions(searchQuery, this.suggestEntityType))
highlightOnly
Type : boolean
Default value : true
inputNameAttr
Type : string
Default value : 'sdi-search'
inputStyle
Type : CSSStyleDeclaration
isAutoSearchEnabled
Type : boolean
Default value : true
placeholder
Type : any
Default value : $localize`:@@namePlaceholder:наименование...`
propositionSelectedFn
Type : function
readonly
Type : boolean
reloadOnShow
Type : boolean
Default value : true
searchBtnName
Type : any
Default value : $localize`:@@searchBtn:Найти`
showSearchIcon
Type : boolean
Default value : true
showToggle
Type : boolean
Default value : true
showTools
Type : boolean
showVisibilityToggle
Type : boolean
styleClasses
Type : string
suggestEntityType
Type : ModelEntityType
tip
Type : string

Outputs

helpRequested
Type : EventEmitter
termApplied
Type : EventEmitter
toolsToggled
Type : EventEmitter

Methods

Public focus
focus()
Returns : void
focusHlInput
focusHlInput()
Returns : void
forceSearch
forceSearch()
Returns : void
ngOnInit
ngOnInit()
Returns : void
onCustomPropositionSelected
onCustomPropositionSelected(proposition: Proposition)

Custom propositions

Parameters :
Name Type Optional
proposition Proposition No
Returns : void
onHlInputBlur
onHlInputBlur()
Returns : void
onHlInputFocus
onHlInputFocus()

Highlighted input

Returns : void
onIconMouseEnter
onIconMouseEnter(event: MouseEvent)

Tip

Parameters :
Name Type Optional
event MouseEvent No
Returns : void
onInputEnterKeyUp
onInputEnterKeyUp(event: KeyboardEvent)
Parameters :
Name Type Optional
event KeyboardEvent No
Returns : void
onInputEscapeKeyUp
onInputEscapeKeyUp(event: KeyboardEvent)
Parameters :
Name Type Optional
event KeyboardEvent No
Returns : void
onInputKeyDown
onInputKeyDown(event: KeyboardEvent)
Parameters :
Name Type Optional
event KeyboardEvent No
Returns : void
onSearchInput
onSearchInput()
Returns : void
onVisibilityToggleClick
onVisibilityToggleClick()
Returns : void
Public resetSearch
resetSearch(emitTermAppliedEvent)
Parameters :
Name Optional Default value
emitTermAppliedEvent No true
Returns : void
Public setTerm
setTerm(term: string)
Parameters :
Name Type Optional
term string No
Returns : void
showCustomPropositions
showCustomPropositions()
Returns : void
toggleTools
toggleTools(event: MouseEvent)

Tools

Parameters :
Name Type Optional
event MouseEvent No
Returns : void

Properties

customPropositionsDebounce
Default value : APP_SETTINGS.QUICK_PROPOSITIONS_DEBOUNCE_IN_MS

Custom propositions

fakeFormAction
Default value : Date.now()
highlightedInputComponent
Type : HighlightedInputComponent
Decorators :
@ViewChild(HighlightedInputComponent)
inputRef
Type : ElementRef<HTMLElement>
Decorators :
@ViewChild('inputRef')
isHlInputFocused
Type : boolean
Public isVisible
Type : boolean
searchSubmitBtn
Type : ElementRef
Decorators :
@ViewChild('searchSubmitBtn')
term
Type : string
Default value : ''
valuePropositionsComponent
Type : ValuePropositionsComponent
Decorators :
@ViewChild(ValuePropositionsComponent)

Accessors

visibilityToggleTitle
getvisibilityToggleTitle()
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""