angular/projects/researchdatabox/portal-ng-common/src/lib/record-table.component.ts
This component displays records in a table.
Features:
Requires:
selector | record-table |
templateUrl | ./record-table.component.html |
Properties |
|
Methods |
|
Inputs |
constructor(loggerService: LoggerService, utilService: UtilityService, lodashTemplateUtilityService: LoDashTemplateUtilityService)
|
||||||||||||
Parameters :
|
columnConfig | |
Type : RecordPropViewMetaDto[]
|
|
Default value : null as any
|
|
dataSource | |
Type : RecordSource
|
|
Default value : null as any
|
|
enableActions | |
Type : boolean
|
|
Default value : false
|
|
enableSort | |
Type : boolean
|
|
Default value : false
|
|
optTemplateData | |
Type : any
|
|
Default value : {}
|
|
paginationBoundaryLinks | |
Type : boolean
|
|
Default value : true
|
|
paginationClass | |
Type : string
|
|
Default value : 'pagination-sm'
|
|
paginationDirectionLinks | |
Type : boolean
|
|
Default value : false
|
|
paginationItemsPerPage | |
Type : number
|
|
Default value : 10
|
|
paginationMaxSize | |
Type : number
|
|
Default value : 10
|
|
paginationRotate | |
Type : boolean
|
|
Default value : true
|
|
showActions | |
Type : literal type[]
|
|
Default value : []
|
|
getColValue | |||||||||
getColValue(row: any, col: RecordPropViewMetaDto)
|
|||||||||
Parameters :
Returns :
any
|
getEntryValue | ||||||||||||||||
getEntryValue(row: any, col: RecordPropViewMetaDto, val: any)
|
||||||||||||||||
Parameters :
Returns :
string
|
Async gotoPage | ||||||
gotoPage(event: any)
|
||||||
Parameters :
Returns :
any
|
Async headerSortChanged |
headerSortChanged(event: any, data: any)
|
Returns :
any
|
Protected Async initComponent |
initComponent()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:81
|
Returns :
Promise<void>
|
getInitSubject |
getInitSubject()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:71
|
For those interested in the init from RXJS-land. Note that it returns a BehaviorSubject instance, and will have an initial value of false, so process the return value as needed.
Returns :
Subject<any>
|
isInitializing |
isInitializing()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:95
|
Main flag to indicate the init status
Returns :
boolean
|
ngOnInit |
ngOnInit()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:50
|
Returns :
void
|
Async waitForDeps |
waitForDeps()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:78
|
Wait for dependencies to initialise
Returns :
Promise<any>
|
Async waitForInit |
waitForInit()
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:89
|
For those interested in the init from the Promise-land
Returns :
Promise<any>
|
headerSortItems |
Type : QueryList<HeaderSortComponent> | undefined
|
Decorators :
@ViewChildren(HeaderSortComponent)
|
Protected brandingAndPortalUrl |
Type : string
|
Default value : ''
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:42
|
Private filterFn |
Default value : function(initStat: boolean) { return initStat; }
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:40
|
Protected initDependencies |
Type : Initable[]
|
Default value : []
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:39
|
Protected initSubject |
Type : BehaviorSubject<any>
|
Default value : new BehaviorSubject(false)
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:38
|
Protected isReady |
Type : boolean
|
Default value : false
|
Inherited from
BaseComponent
|
Defined in
BaseComponent:37
|