arlas-wui-toolkit / Exports / SearchComponent
Class: SearchComponent
Implements
OnInit
OnDestroy
OnChanges
Table of contents
Constructors
Properties
- collections
- collectionsState
- dialogPositionLeft
- dialogPositionTop
- displayCollectionSettings
- retrieveSearchValueSubs
- searchContributors
- searchPlaceholder
- searchValue
- translate
Methods
Constructors
constructor
• new SearchComponent(arlasColorService
, collaborativeService
, translate
, dialog
, configService
, snackbar
)
Parameters
Name | Type |
---|---|
arlasColorService |
ArlasColorService |
collaborativeService |
ArlasCollaborativesearchService |
translate |
TranslateService |
dialog |
MatDialog |
configService |
ArlasConfigService |
snackbar |
MatSnackBar |
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:80
Properties
collections
• collections: { checked
: boolean
; label
: string
}[]
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:78
collectionsState
• collectionsState: Map
<string
, boolean
>
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:77
dialogPositionLeft
• dialogPositionLeft: number
Input
: Angular
Description
Left position of the search dialog in pixels
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:56
dialogPositionTop
• dialogPositionTop: number
Input
: Angular
Description
Top position of the search dialog in pixels
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:50
displayCollectionSettings
• displayCollectionSettings: boolean
= true
Input
: Angular
Description
Wether display or not the button to select the collections
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:68
retrieveSearchValueSubs
• retrieveSearchValueSubs: Subscription
[]
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:75
searchContributors
• searchContributors: SearchContributor
[]
Input
: Angular
Description
Search contributor
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:44
searchPlaceholder
• searchPlaceholder: string
Description
Placeholder value as retrieved from the search contributor
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:73
searchValue
• searchValue: string
Input
: Angular
Description
Value of the search filter
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:62
translate
• translate: TranslateService
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:83
Methods
clearSearch
▸ clearSearch(): void
Returns
void
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:198
ngOnChanges
▸ ngOnChanges(changes
): void
Parameters
Name | Type |
---|---|
changes |
SimpleChanges |
Returns
void
Implementation of
OnChanges.ngOnChanges
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:135
ngOnDestroy
▸ ngOnDestroy(): void
Returns
void
Implementation of
OnDestroy.ngOnDestroy
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:142
ngOnInit
▸ ngOnInit(): void
Returns
void
Implementation of
OnInit.ngOnInit
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:89
openDialog
▸ openDialog(): void
Returns
void
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:167
search
▸ search(value
): void
Parameters
Name | Type |
---|---|
value |
string |
Returns
void
Defined in
projects/arlas-toolkit/src/lib/components/search/search.component.ts:146