File

context-dashboard/context-dashboard.service.ts

Index

Properties
Methods
Accessors

Constructor

constructor(inventory: InventoryService, tabs: TabsService, modal: ModalService, translateService: TranslateService, router: Router, user: UserService, appState: AppStateService, navigator: NavigatorService, permissions: Permissions)
Parameters :
Name Type Optional
inventory InventoryService No
tabs TabsService No
modal ModalService No
translateService TranslateService No
router Router No
user UserService No
appState AppStateService No
navigator NavigatorService No
permissions Permissions No

Methods

activateDashboards
activateDashboards(route: ActivatedRouteSnapshot, types: ContextDashboardType[])
Parameters :
Name Type Optional
route ActivatedRouteSnapshot No
types ContextDashboardType[] No
Returns : any
canEditDashboard
canEditDashboard(mo)
Parameters :
Name Optional
mo No
Returns : any
Async create
create(dashboardCfg: ContextDashboard, contextOrName: literal type | string)
Parameters :
Name Type Optional
dashboardCfg ContextDashboard No
contextOrName literal type | string No
Returns : {}
Async delete
delete(dashboard: ContextDashboardManagedObject, withConfirmation: boolean)
Parameters :
Name Type Optional Default value
dashboard ContextDashboardManagedObject No
withConfirmation boolean No true
Returns : any
Async detail
detail(dashboardMO: ContextDashboardManagedObject)
Parameters :
Name Type Optional
dashboardMO ContextDashboardManagedObject No
Returns : {}
getDashboard$
getDashboard$(dashboardIdOrName, dashboardType: ContextDashboardType[], mo?: IManagedObject)
Parameters :
Name Type Optional
dashboardIdOrName No
dashboardType ContextDashboardType[] No
mo IManagedObject Yes
Returns : any
getFilteredDashboardStyles
getFilteredDashboardStyles(styleList: string[])
Parameters :
Name Type Optional
styleList string[] No
Returns : any
getNamedDashboardOrCreate
getNamedDashboardOrCreate(name: string, defaultWidgets: Widget[])
Parameters :
Name Type Optional
name string No
defaultWidgets Widget[] No
Returns : any
getStyling
getStyling(styleList, styleName, defaultValue)
Parameters :
Name Optional
styleList No
styleName No
defaultValue No
Returns : any
isDeviceType
isDeviceType(dashboard: Partial)
Parameters :
Name Type Optional
dashboard Partial<ContextDashboardManagedObject> No
Returns : any
isNamed
isNamed(dashboard: Partial)
Parameters :
Name Type Optional
dashboard Partial<ContextDashboardManagedObject> No
Returns : any
isReport
isReport(dashboard: Partial)
Parameters :
Name Type Optional
dashboard Partial<ContextDashboardManagedObject> No
Returns : any
mapWidgets
mapWidgets(widgets: Widget[])
Parameters :
Name Type Optional
widgets Widget[] No
Returns : any
Async navigateToDashboard
navigateToDashboard(dashboardMO: ContextDashboardManagedObject)
Parameters :
Name Type Optional
dashboardMO ContextDashboardManagedObject No
Returns : any
Async refreshTabs
refreshTabs(dashboardMO: ContextDashboardManagedObject)
Parameters :
Name Type Optional
dashboardMO ContextDashboardManagedObject No
Returns : any
Async update
update(dashboard: ContextDashboardManagedObject)
Parameters :
Name Type Optional
dashboard ContextDashboardManagedObject No
Returns : {}
updateNavigatorItem
updateNavigatorItem(mo: IManagedObject)
Parameters :
Name Type Optional
mo IManagedObject No
Returns : void

Properties

Readonly REPORT_PARTIAL_NAME
REPORT_PARTIAL_NAME: string
Type : string
Default value : 'report_'

Accessors

formDisabled
getformDisabled()
setformDisabled(value)
Parameters :
Name Optional
value No
Returns : void

result-matching ""

    No results matching ""