context-dashboard/dashboard-manager/dashboard-manager.service.ts
Properties |
|
Methods |
constructor(inventory: InventoryService, userPreferencesService: UserPreferencesService, modal: ModalService, translateService: TranslateService)
|
|||||||||||||||
Parameters :
|
Async delete | |||||||||
delete(dashboard: ContextDashboardManagedObject, onSuccess: () => void)
|
|||||||||
Parameters :
Returns :
Promise<void>
|
getColumns |
getColumns()
|
Returns :
Column[]
|
Async getCount | ||||||||||||
getCount(columns: Column[], pagination: Pagination, text?: string)
|
||||||||||||
Parameters :
Returns :
Promise<number>
|
Async getData | ||||||||||||
getData(columns: Column[], pagination: Pagination, text?: string)
|
||||||||||||
Parameters :
Returns :
Promise<IResultList<IManagedObject>>
|
getDefaultPagination |
getDefaultPagination()
|
Returns :
Pagination
|
Async getTotal |
getTotal()
|
Returns :
Promise<number>
|
applyConfigToColumns | ||||||||||||
applyConfigToColumns(config: GridConfig, columns: Column[], storageKey?: string)
|
||||||||||||
Parameters :
Returns :
Column[]
|
clearConfig | ||||||
clearConfig(key: string)
|
||||||
Parameters :
Returns :
void
|
getConfig$ | ||||||
getConfig$(key: string)
|
||||||
Parameters :
Returns :
Observable<GridConfig>
|
getQueryObj |
getQueryObj(columns: Column[], defaultFilter: object)
|
Returns :
any
|
getUserConfiguredColumns$ | |||||||||
getUserConfiguredColumns$(columns: Column[] | Observable<Column[]>, storageKey?: string)
|
|||||||||
Parameters :
Returns :
any
|
saveConfig$ | |||||||||
saveConfig$(config: GridConfig, key: string)
|
|||||||||
Parameters :
Returns :
Observable<GridConfig>
|
baseQuery |
Type : object
|
Default value : {
__filter: {
__and: [
{ 'c8y_Dashboard.deviceType': { __eq: true } },
{ __has: 'c8y_Dashboard.deviceTypeValue' }
]
}
}
|
queriesUtil |
Type : QueriesUtil
|
Protected DEFAULT_PAGE_SIZE |
Type : number
|
Default value : 20
|