projects/aoc-client/ui/data/aoc-ui-table/aoc-ui-table.component.ts
AfterContentInit
encapsulation | ViewEncapsulation.None |
host | { |
selector | aoc-ui-table |
standalone | true |
imports |
NgIf
NgStyle
NgTemplateOutlet
NgClass
NgForOf
|
templateUrl | ./aoc-ui-table.component.html |
Properties |
|
Methods |
|
Inputs |
Outputs |
HostListeners |
Accessors |
constructor(el: ElementRef, aocUiLoggerService: AocUiLoggerService, aocUiTableTree: AocUiTableTreeDirective)
|
||||||||||||
Parameters :
|
autoExpandAllRows |
Type : boolean
|
Default value : false
|
autoSort |
Type : boolean
|
Default value : true
|
customSort |
Type : boolean
|
Default value : false
|
data |
Type : AocUiTableRowData[]
|
expandedIds |
Type : Set<any>
|
idProp |
Type : string
|
Default value : 'id'
|
loading |
Type : boolean
|
Default value : false
|
resizeMode |
Type : "fit" | "expand"
|
Default value : 'expand'
|
rowTrackBy |
Type : function
|
selected |
Type : AocUiTableRowData[]
|
selectMode |
Type : "single" | "multiple"
|
sortField |
Type : AocUiFieldPath | undefined
|
sortOrder |
Type : | "1" | undefined
|
tableStyle |
Type : literal type
|
expandedIdsChanged |
Type : EventEmitter<Set<any>>
|
onEditComplete |
Type : EventEmitter<any>
|
onSort |
Type : EventEmitter<void>
|
selectedChange |
Type : EventEmitter<AocUiTableRowData[]>
|
sortFn |
Type : EventEmitter<AocUiTableCustomSortEvent>
|
keydown |
Arguments : '$event'
|
keydown(event: KeyboardEvent)
|
Public deSelectAllRows |
deSelectAllRows()
|
Returns :
void
|
Public isAllSelected |
isAllSelected()
|
Returns :
boolean
|
Public isColumnSorted | ||||||
isColumnSorted(field: AocUiFieldPath)
|
||||||
Parameters :
Returns :
boolean
|
Public isRowSelected | ||||||
isRowSelected(row: AocUiTableRow)
|
||||||
Parameters :
Returns :
any
|
onKeyDown | ||||||
onKeyDown(event: KeyboardEvent)
|
||||||
Decorators :
@HostListener('keydown', ['$event'])
|
||||||
Parameters :
Returns :
void
|
Public selectAllRows |
selectAllRows()
|
Returns :
void
|
Public selectRow | |||||||||
selectRow(row: AocUiTableRow | null, event?: PointerEvent | KeyboardEvent)
|
|||||||||
Parameters :
Returns :
void
|
Public sortColumn | |||||||||
sortColumn(field: AocUiFieldPath, _: PointerEvent)
|
|||||||||
Parameters :
Returns :
void
|
Public toggleRowExpand | ||||||
toggleRowExpand(row: AocUiTableRow)
|
||||||
Parameters :
Returns :
void
|
Public toggleSelectRow | ||||||
toggleSelectRow(row: AocUiTableRow)
|
||||||
Parameters :
Returns :
void
|
Public _data |
Type : AocUiTableRowData[]
|
Default value : []
|
aocUiTableTemplates |
Type : QueryList<AocUiTableTemplateDirective>
|
Decorators :
@ContentChildren(AocUiTableTemplateDirective)
|
Public aocUiTableTree |
Type : AocUiTableTreeDirective
|
Decorators :
@Optional()
|
Public el |
Type : ElementRef
|
tableEl |
Type : ElementRef
|
Decorators :
@ViewChild('table')
|
data | ||||||
getdata()
|
||||||
setdata(value: AocUiTableRowData[])
|
||||||
Parameters :
Returns :
void
|
selected | ||||||
getselected()
|
||||||
setselected(value: AocUiTableRowData[])
|
||||||
Parameters :
Returns :
void
|
sortField | ||||||
getsortField()
|
||||||
setsortField(value: AocUiFieldPath | undefined)
|
||||||
Parameters :
Returns :
void
|
sortOrder | ||||||
getsortOrder()
|
||||||
setsortOrder(value: | "1" | undefined)
|
||||||
Parameters :
Returns :
void
|
expandedIds | ||||||
getexpandedIds()
|
||||||
setexpandedIds(value: Set
|
||||||
Parameters :
Returns :
void
|