File

device-grid/device-grid.service.ts

Extends

DataGridService

Index

Properties
Methods

Constructor

constructor(inventoryService: InventoryService, userService: UserService, translateService: TranslateService, alertService: AlertService, modal: ModalService, columnUtilService: ColumnUtilService, userPreferencesService: UserPreferencesService)
Parameters :
Name Type Optional
inventoryService InventoryService No
userService UserService No
translateService TranslateService No
alertService AlertService No
modal ModalService No
columnUtilService ColumnUtilService No
userPreferencesService UserPreferencesService No

Methods

clearConfig
clearConfig(key: string)
Parameters :
Name Type Optional Default value
key string No this.GRID_CONFIG_DEFAULT_STORAGE_KEY
Returns : void
Async delete
delete(device: IManagedObject)
Parameters :
Name Type Optional
device IManagedObject No
Returns : Promise<void>
getAlarmsHref
getAlarmsHref(device: IManagedObject)
Parameters :
Name Type Optional
device IManagedObject No
Returns : string
Async getChildDeviceData
getChildDeviceData(columns: Column[], pagination: Pagination, query: any, withChildren, id: string)
Parameters :
Name Type Optional Default value
columns Column[] No
pagination Pagination No
query any No {}
withChildren No false
id string No
Returns : unknown
getChildDeviceGridColumns
getChildDeviceGridColumns()
Returns : Column[]
getConfig$
getConfig$(key: string)
Parameters :
Name Type Optional Default value
key string No this.GRID_CONFIG_DEFAULT_STORAGE_KEY
Async getCount
getCount(columns: Column[], pagination: Pagination, query: any, text: string)
Parameters :
Name Type Optional Default value
columns Column[] No
pagination Pagination No
query any No {}
text string No null
Returns : unknown
Async getCountChildDevices
getCountChildDevices(columns: Column[], pagination: Pagination, query: any, id: string)
Parameters :
Name Type Optional Default value
columns Column[] No
pagination Pagination No
query any No {}
id string No
Returns : unknown
Async getData
getData(columns: Column[], pagination: Pagination, query: any, withChildren, text: null)
Parameters :
Name Type Optional Default value
columns Column[] No
pagination Pagination No
query any No {}
withChildren No false
text null No null
Returns : unknown
getDefaultBulkActionControls
getDefaultBulkActionControls()
getDefaultColumns
getDefaultColumns()
Returns : Column[]
getDefaultHeaderActionControls
getDefaultHeaderActionControls()
getDefaultPagination
getDefaultPagination()
Returns : Pagination
getDeviceQueryString
getDeviceQueryString(columns: Column[], query: any)
Parameters :
Name Type Optional
columns Column[] No
query any No
Returns : string
getHref
getHref(groupOrDevice: IManagedObject, prefix: string)
Parameters :
Name Type Optional Default value
groupOrDevice IManagedObject No
prefix string No '#/'
Returns : string
getInfiniteScrollPagination
getInfiniteScrollPagination()
Returns : Pagination
getModel
getModel(device: IManagedObject)
Parameters :
Name Type Optional
device IManagedObject No
Returns : string
getParentsNames
getParentsNames(device: IManagedObject, featuredParentId?: string | number)
Parameters :
Name Type Optional
device IManagedObject No
featuredParentId string | number Yes
Returns : string
getProperName
getProperName(device: IManagedObject)
Parameters :
Name Type Optional
device IManagedObject No
Returns : string
getSerialNumber
getSerialNumber(device: IManagedObject)
Parameters :
Name Type Optional
device IManagedObject No
Returns : string
Async getTotal
getTotal(query: any)
Parameters :
Name Type Optional Default value
query any No {}
Returns : Promise<number>
Async getTotalChildDevices
getTotalChildDevices(query: any, id: string)
Parameters :
Name Type Optional Default value
query any No {}
id string No
Returns : Promise<number>
saveConfig$
saveConfig$(config: GridConfig, key: string)
Parameters :
Name Type Optional Default value
config GridConfig No
key string No this.GRID_CONFIG_DEFAULT_STORAGE_KEY
applyConfigToColumns
applyConfigToColumns(config: GridConfig, columns: Column[], storageKey?: string)
Parameters :
Name Type Optional
config GridConfig No
columns Column[] No
storageKey string Yes
Returns : Column[]
getQueryObj
getQueryObj(columns: Column[], defaultFilter: object)
Parameters :
Name Type Optional Default value
columns Column[] No
defaultFilter object No {}
Returns : any
getUserConfiguredColumns$
getUserConfiguredColumns$(columns: Column[] | Observable<Column[]>, storageKey?: string)
Parameters :
Name Type Optional
columns Column[] | Observable<Column[]> No
storageKey string Yes
Returns : any

Properties

Protected GRID_CONFIG_DEFAULT_STORAGE_KEY
Type : string
Default value : 'device-grid-config'
Protected DEFAULT_PAGE_SIZE
Type : number
Default value : 20
Protected queriesUtil
Type : QueriesUtil

results matching ""

    No results matching ""