File

projects/aoc-client/ui/data/aoc-ui-table/aoc-ui-table.component.ts

Implements

AfterContentInit

Metadata

Index

Properties
Methods
Inputs
Outputs
HostListeners
Accessors

Constructor

constructor(el: ElementRef, aocUiLoggerService: AocUiLoggerService, aocUiTableTree: AocUiTableTreeDirective)
Parameters :
Name Type Optional
el ElementRef No
aocUiLoggerService AocUiLoggerService No
aocUiTableTree AocUiTableTreeDirective No

Inputs

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

Outputs

expandedIdsChanged
Type : EventEmitter<Set<any>>
onEditComplete
Type : EventEmitter<any>
onSort
Type : EventEmitter<void>
selectedChange
Type : EventEmitter<AocUiTableRowData[]>
sortFn
Type : EventEmitter<AocUiTableCustomSortEvent>

HostListeners

keydown
Arguments : '$event'
keydown(event: KeyboardEvent)

Methods

Public deSelectAllRows
deSelectAllRows()
Returns : void
Public isAllSelected
isAllSelected()
Returns : boolean
Public isColumnSorted
isColumnSorted(field: AocUiFieldPath)
Parameters :
Name Type Optional
field AocUiFieldPath No
Returns : boolean
Public isRowSelected
isRowSelected(row: AocUiTableRow)
Parameters :
Name Type Optional
row AocUiTableRow No
Returns : any
onKeyDown
onKeyDown(event: KeyboardEvent)
Decorators :
@HostListener('keydown', ['$event'])
Parameters :
Name Type Optional
event KeyboardEvent No
Returns : void
Public selectAllRows
selectAllRows()
Returns : void
Public selectRow
selectRow(row: AocUiTableRow | null, event?: PointerEvent | KeyboardEvent)
Parameters :
Name Type Optional
row AocUiTableRow | null No
event PointerEvent | KeyboardEvent Yes
Returns : void
Public sortColumn
sortColumn(field: AocUiFieldPath, _: PointerEvent)
Parameters :
Name Type Optional
field AocUiFieldPath No
_ PointerEvent No
Returns : void
Public toggleRowExpand
toggleRowExpand(row: AocUiTableRow)
Parameters :
Name Type Optional
row AocUiTableRow No
Returns : void
Public toggleSelectRow
toggleSelectRow(row: AocUiTableRow)
Parameters :
Name Type Optional
row AocUiTableRow No
Returns : void

Properties

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')

Accessors

data
getdata()
setdata(value: AocUiTableRowData[])
Parameters :
Name Type Optional
value AocUiTableRowData[] No
Returns : void
selected
getselected()
setselected(value: AocUiTableRowData[])
Parameters :
Name Type Optional
value AocUiTableRowData[] No
Returns : void
sortField
getsortField()
setsortField(value: AocUiFieldPath | undefined)
Parameters :
Name Type Optional
value AocUiFieldPath | undefined No
Returns : void
sortOrder
getsortOrder()
setsortOrder(value: | "1" | undefined)
Parameters :
Name Type Optional
value | "1" | undefined No
Returns : void
expandedIds
getexpandedIds()
setexpandedIds(value: Set)
Parameters :
Name Type Optional
value Set<any> No
Returns : void

results matching ""

    No results matching ""