src/lib/services/sz-prefs.service.ts
entity detail related preferences bus class. used by SzPrefsService to store it's entity detail prefs.
Should really be used from SzPrefsService context, not on its own.
Example :this.prefs.entityDetail.showGraphSection = false;
this.prefs.entityDetail.showOtherDataInSummary = true;
this.prefs.entityDetail.prefsChanged.subscribe( (prefs) => { console.log('entity detail pref change happened.', prefs); })
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)
|
||||||
populate values by calling setters with the same names as json keys
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
|
showGraphSection | ||||||
getshowGraphSection()
|
||||||
show graph section
Returns :
boolean
|
||||||
setshowGraphSection(value: boolean)
|
||||||
show graph section
Parameters :
Returns :
void
|
showHowSection | ||||||
getshowHowSection()
|
||||||
show graph section
Returns :
boolean
|
||||||
setshowHowSection(value: boolean)
|
||||||
show graph section
Parameters :
Returns :
void
|
showMatchesSection | ||||||
getshowMatchesSection()
|
||||||
show matches/records section
Returns :
boolean
|
||||||
setshowMatchesSection(value: boolean)
|
||||||
show matches/records section
Parameters :
Returns :
void
|
showPossibleMatchesSection | ||||||
getshowPossibleMatchesSection()
|
||||||
show possible matches section
Returns :
boolean
|
||||||
setshowPossibleMatchesSection(value: boolean)
|
||||||
show possible matches section
Parameters :
Returns :
void
|
showPossibleRelationshipsSection | ||||||
getshowPossibleRelationshipsSection()
|
||||||
show possible relationships section
Returns :
boolean
|
||||||
setshowPossibleRelationshipsSection(value: boolean)
|
||||||
show possible relationships section
Parameters :
Returns :
void
|
showDisclosedSection | ||||||
getshowDisclosedSection()
|
||||||
show disclosed relationships section
Returns :
boolean
|
||||||
setshowDisclosedSection(value: boolean)
|
||||||
show disclosed relationships section
Parameters :
Returns :
void
|
graphSectionCollapsed | ||||||
getgraphSectionCollapsed()
|
||||||
graph section collapsed
Returns :
boolean
|
||||||
setgraphSectionCollapsed(value: boolean)
|
||||||
graph section collapsed
Parameters :
Returns :
void
|
howSectionCollapsed | ||||||
gethowSectionCollapsed()
|
||||||
how report section collapsed
Returns :
boolean
|
||||||
sethowSectionCollapsed(value: boolean)
|
||||||
how report section collapsed
Parameters :
Returns :
void
|
recordsSectionCollapsed | ||||||
getrecordsSectionCollapsed()
|
||||||
records/matches section collapsed
Returns :
boolean
|
||||||
setrecordsSectionCollapsed(value: boolean)
|
||||||
records/matches section collapsed
Parameters :
Returns :
void
|
possibleMatchesSectionCollapsed | ||||||
getpossibleMatchesSectionCollapsed()
|
||||||
possible matches section collapsed
Returns :
boolean
|
||||||
setpossibleMatchesSectionCollapsed(value: boolean)
|
||||||
possible matches section collapsed
Parameters :
Returns :
void
|
possibleRelationshipsSectionCollapsed | ||||||
getpossibleRelationshipsSectionCollapsed()
|
||||||
possible relationships section collapsed
Returns :
boolean
|
||||||
setpossibleRelationshipsSectionCollapsed(value: boolean)
|
||||||
possible relationships section collapsed
Parameters :
Returns :
void
|
disclosedRelationshipsSectionCollapsed | ||||||
getdisclosedRelationshipsSectionCollapsed()
|
||||||
disclosed relationships section collapsed
Returns :
boolean
|
||||||
setdisclosedRelationshipsSectionCollapsed(value: boolean)
|
||||||
disclosed relationships section collapsed
Parameters :
Returns :
void
|
rememberSectionCollapsedState | ||||||
getrememberSectionCollapsedState()
|
||||||
whether or not to publish change events on property value changes. useful for not getting notified on bulk property sets.
Returns :
boolean
|
||||||
setrememberSectionCollapsedState(value: boolean)
|
||||||
whether or not to publish change events on property value changes. useful for not getting notified on bulk property sets.
Parameters :
Returns :
void
|
truncateSummaryAt | ||||||
gettruncateSummaryAt()
|
||||||
rows to show in header summary before ellipsis
Returns :
number
|
||||||
settruncateSummaryAt(value: number)
|
||||||
rows to show in header summary before ellipsis
Parameters :
Returns :
void
|
showOtherData | ||||||
getshowOtherData()
|
||||||
show "other data" column in header summary
Returns :
boolean
|
||||||
setshowOtherData(value: boolean)
|
||||||
show "other data" column in header summary
Parameters :
Returns :
void
|
truncateOtherDataAt | ||||||
gettruncateOtherDataAt()
|
||||||
rows of "other data" to show
Returns :
number
|
||||||
settruncateOtherDataAt(value: number)
|
||||||
rows of "other data" to show
Parameters :
Returns :
void
|
openLinksInNewTab | ||||||
getopenLinksInNewTab()
|
||||||
open entity row clicks in new tab
Returns :
boolean
|
||||||
setopenLinksInNewTab(value: boolean)
|
||||||
open entity row clicks in new tab
Parameters :
Returns :
void
|
showOtherDataInRecords | ||||||
getshowOtherDataInRecords()
|
||||||
show "other data" in matches/records section
Returns :
boolean
|
||||||
setshowOtherDataInRecords(value: boolean)
|
||||||
show "other data" in matches/records section
Parameters :
Returns :
void
|
showOtherDataInEntities | ||||||
getshowOtherDataInEntities()
|
||||||
show "other data" in sections other than matches section
Returns :
boolean
|
||||||
setshowOtherDataInEntities(value: boolean)
|
||||||
show "other data" in sections other than matches section
Parameters :
Returns :
void
|
showOtherDataInSummary | ||||||
getshowOtherDataInSummary()
|
||||||
show "other data" in header summary below icon
Returns :
boolean
|
||||||
setshowOtherDataInSummary(value: boolean)
|
||||||
show "other data" in header summary below icon
Parameters :
Returns :
void
|
truncateOtherDataInRecordsAt | ||||||
gettruncateOtherDataInRecordsAt()
|
||||||
how many lines of "other data" to show in matches section before ellipsis
Returns :
number
|
||||||
settruncateOtherDataInRecordsAt(value: number)
|
||||||
how many lines of "other data" to show in matches section before ellipsis
Parameters :
Returns :
void
|
hideGraphWhenZeroRelations | ||||||
gethideGraphWhenZeroRelations()
|
||||||
hide the graph when 0 relationships in network query are returned for entity
Returns :
boolean
|
||||||
sethideGraphWhenZeroRelations(value: boolean)
|
||||||
hide the graph when 0 relationships in network query are returned for entity
Parameters :
Returns :
void
|
showRecordIdWhenNative | ||||||
getshowRecordIdWhenNative()
|
||||||
show record id's in matches/records section when not auto-generated hash. not fully implemented
Returns :
boolean
|
||||||
setshowRecordIdWhenNative(value: boolean)
|
||||||
show record id's in matches/records section when not auto-generated hash. not fully implemented
Parameters :
Returns :
void
|
showTopEntityRecordIdsWhenSingular | ||||||
getshowTopEntityRecordIdsWhenSingular()
|
||||||
show record id next to data source name in entity rows when only one source record
Returns :
boolean
|
||||||
setshowTopEntityRecordIdsWhenSingular(value: boolean)
|
||||||
show record id next to data source name in entity rows when only one source record
Parameters :
Returns :
void
|