File

context-dashboard/dashboard-manager/type-dashboard-target-assets-grid/type-dashboard-assets-grid.service.ts

Extends

DataGridService

Index

Properties
Methods

Constructor

constructor(inventoryService: InventoryService, userPreferencesService: UserPreferencesService)
Parameters :
Name Type Optional
inventoryService InventoryService No
userPreferencesService UserPreferencesService No

Methods

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 getData
getData(columns: Column[], pagination: Pagination, query: any, text: null)
Parameters :
Name Type Optional Default value
columns Column[] No
pagination Pagination No
query any No {}
text null No null
Returns : unknown
getDefaultColumns
getDefaultColumns(columnsForDevice)
Parameters :
Name Optional Default value
columnsForDevice No true
Returns : Column[]
Async getTotal
getTotal(query: any)
Parameters :
Name Type Optional Default value
query any No {}
Returns : Promise<number>
applyConfigToColumns
applyConfigToColumns(config: GridConfig, columns: Column[], storageKey?: string)
Parameters :
Name Type Optional
config GridConfig No
columns Column[] No
storageKey string Yes
Returns : Column[]
clearConfig
clearConfig(key: string)
Parameters :
Name Type Optional
key string No
Returns : void
getConfig$
getConfig$(key: string)
Parameters :
Name Type Optional
key string No
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
saveConfig$
saveConfig$(config: GridConfig, key: string)
Parameters :
Name Type Optional
config GridConfig No
key string No

Properties

Protected DEFAULT_PAGE_SIZE
Type : number
Default value : 20
Protected queriesUtil
Type : QueriesUtil

results matching ""

    No results matching ""