File

context-dashboard/context-dashboard.service.ts

Index

Properties
Methods
Accessors

Constructor

constructor(inventory: InventoryService, tabs: TabsService, modal: ModalService, translateService: TranslateService, router: Router, navigator: NavigatorService, permissions: Permissions, alert: AlertService, dynamicComponent: DynamicComponentService)
Parameters :
Name Type Optional
inventory InventoryService No
tabs TabsService No
modal ModalService No
translateService TranslateService No
router Router No
navigator NavigatorService No
permissions Permissions No
alert AlertService No
dynamicComponent DynamicComponentService No

Methods

activateDashboards
activateDashboards(route: ActivatedRouteSnapshot, types: ContextDashboardType[])
Parameters :
Name Type Optional
route ActivatedRouteSnapshot No
types ContextDashboardType[] No
Returns : Observable<boolean | []>
canEditDashboard
canEditDashboard(mo)
Parameters :
Name Optional
mo No
Returns : any
Async create
create(dashboardCfg: ContextDashboard, context?: ContextData, name: string)
Parameters :
Name Type Optional Default value
dashboardCfg ContextDashboard No
context ContextData Yes
name string No ''
Returns : unknown
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 : unknown
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[], context?: ContextData)
Parameters :
Name Type Optional
name string No
defaultWidgets Widget[] No
context ContextData Yes
Returns : any
getStyling
getStyling(styleList, styleName, defaultValue)
Parameters :
Name Optional
styleList No
styleName No
defaultValue No
Returns : any
isDeviceDashboard
isDeviceDashboard(dashboard: Partial)
Parameters :
Name Type Optional
dashboard Partial<ContextDashboardManagedObject> No
Returns : boolean
isDeviceType
isDeviceType(dashboard: Partial)
Parameters :
Name Type Optional
dashboard Partial<ContextDashboardManagedObject> No
Returns : any
isGroupDashboard
isGroupDashboard(dashboard: Partial)
Parameters :
Name Type Optional
dashboard Partial<ContextDashboardManagedObject> No
Returns : boolean
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 pasteDashboard
pasteDashboard(newContext: DashboardContext)
Parameters :
Name Type Optional
newContext DashboardContext No
Returns : Promise<void>
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 : unknown
updateNavigatorItem
updateNavigatorItem(mo: IManagedObject)
Parameters :
Name Type Optional
mo IManagedObject No
Returns : void

Properties

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

Accessors

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

results matching ""

    No results matching ""