src/lib/services/sz-prefs.service.ts
search form related preferences bus class. used by SzPrefsService to store it's search form related prefs. Should really be used from SzPrefsService context, not on its own.
Example :this.prefs.searchForm.allowedTypeAttributes = ['SSN_NUMBER','DRIVERS_LICENSE_NUMBER'];
this.prefs.searchResults.prefsChanged.subscribe( (prefs) => { console.log('search form pref change happened.', prefs); })
Properties |
|
Methods |
|
Accessors |
constructor()
|
Public bulkSet |
Type : boolean
|
Default value : false
|
during a bulk property set, set this to true to not publish change events on every single value change |
Public prefChanged |
Type : Subject<literal type>
|
Default value : new Subject<{name: string, value: any}>()
|
subject that can be subscribed to for INDIVIDUAL value change notifications. |
Public prefsChanged |
Type : BehaviorSubject<any>
|
Default value : new BehaviorSubject<any>(this.toJSONObject())
|
behavior subject that can be subscribed to for change notifications. |
typemap |
Type : object
|
Default value : {}
|
Public fromJSONObject | ||||||
fromJSONObject(value: string)
|
||||||
the search form prefs contain a folio collection that automagically update when a user executes a search. Because of this additional functionality the usual fromJSONObject needs to perform some special logic to initialize the prefs from JSON like create class instances etc.
Parameters :
Returns :
void
|
Public getPublicPropertiesSchema |
getPublicPropertiesSchema()
|
gets an array of all public json properties and their types
Returns :
{}
|
Public toJSONObject |
toJSONObject()
|
get shallow JSON copy of object state. properties are filtered by members of jsonKeys
Returns :
{}
|
Public toJSONString |
toJSONString()
|
get object state representation as a string
Returns :
string
|
rememberLastSearches | ||||||
getrememberLastSearches()
|
||||||
remember last X searches in autofill.
Returns :
number
|
||||||
setrememberLastSearches(value: number)
|
||||||
remember last X searches in autofill.
Parameters :
Returns :
void
|
disableSearchHistory | ||||||
getdisableSearchHistory()
|
||||||
whether or not to disable search form history drop downs.
Returns :
boolean
|
||||||
setdisableSearchHistory(value: boolean)
|
||||||
whether or not to disable search form history drop downs.
Parameters :
Returns :
void
|
savedSearches | ||||||
getsavedSearches()
|
||||||
get list of last searches performed.
Returns :
SzSearchParamsFolio[]
|
||||||
setsavedSearches(value: SzSearchParamsFolio[])
|
||||||
update list of last searches performed.
Parameters :
Returns :
void
|
searchHistory | ||||||
getsearchHistory()
|
||||||
get list of last searches performed.
Returns :
SzSearchHistoryFolio
|
||||||
setsearchHistory(value: SzSearchHistoryFolio)
|
||||||
update list of last searches performed.
Parameters :
Returns :
void
|
allowedTypeAttributes | ||||||
getallowedTypeAttributes()
|
||||||
the allowed identifier types to show in the identifier pulldown
Returns :
string[]
|
||||||
setallowedTypeAttributes(value: string[])
|
||||||
the allowed identifier types to show in the identifier pulldown
Parameters :
Returns :
void
|