Skip to content
angulux
@anguless/angulux/treetable

treetable

16 declarations1 demos
import
import { TreeTableModule } from '@anguless/angulux/treetable';

Basic

TreeTable is Table over a TreeNode hierarchy, with a toggler for each branch.

NameSizeType
Documents 75kbFolder
Pictures 150kbFolder
<agl-treeTable [value]="nodes" [tableStyle]="{ 'min-width': '32rem' }">    <ng-template #header>        <tr>            <th>Name</th>            <th>Size</th>            <th>Type</th>        </tr>    </ng-template>    <ng-template #body let-rowNode let-rowData="rowData">        <tr [ttRow]="rowNode">            <td>                <agl-treeTableToggler [rowNode]="rowNode" />                {{ rowData.name }}            </td>            <td>{{ rowData.size }}</td>            <td>{{ rowData.type }}</td>        </tr>    </ng-template></agl-treeTable>

API

Generated from the committed corpus, which check:corpus holds to the built library.

TreeTable

componentagl-treeTable, agl-treetable, agl-tree-table

TreeTable is used to display hierarchical data in tabular format.

InputTypeDefaultDescription
columnsany[] | undefinednot documentedAn array of objects to represent dynamic columns.
styleClass
deprecated โ€” since v20.0.0, use `class` instead.
string | undefinednot documentedStyle class of the component.
tableStyle{ [klass: string]: any } | null | undefinednot documentedInline style of the table.
tableStyleClassstring | undefinednot documentedStyle class of the table.
autoLayoutboolean | undefinednot documentedWhether the cell widths scale according to their content or not.
lazybooleannot documentedDefines if data is loaded and interacted with in lazy manner.
lazyLoadOnInitbooleannot documentedWhether to call lazy loading on initialization.
paginatorboolean | undefinednot documentedWhen specified as true, enables the pagination.
rowsnumber | undefinednot documentedNumber of rows to display per page.
firstnumbernot documentedIndex of the first row to be displayed.
pageLinksnumbernot documentedNumber of page links to display in paginator.
rowsPerPageOptionsany[] | undefinednot documentedArray of integer/object values to display inside rows per page dropdown of paginator
alwaysShowPaginatorbooleannot documentedWhether to show it even there is only one page.
paginatorPosition'top' | 'bottom' | 'both'not documentedPosition of the paginator.
paginatorStyleClassstring | undefinednot documentedCustom style class for paginator
paginatorDropdownAppendToHTMLElement | ElementRef | TemplateRef<any> | string | null | undefined | anynot documentedTarget element to attach the paginator dropdown overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
currentPageReportTemplatestringnot documentedTemplate of the current page report element. Available placeholders are {currentPage},{totalPages},{rows},{first},{last} and {totalRecords}
showCurrentPageReportboolean | undefinednot documentedWhether to display current page report.
showJumpToPageDropdownboolean | undefinednot documentedWhether to display a dropdown to navigate to any page.
showFirstLastIconbooleannot documentedWhen enabled, icons are displayed on paginator to go first and last page.
showPageLinksbooleannot documentedWhether to show page links.
defaultSortOrdernumbernot documentedSort order to use when an unsorted column gets sorted by user interaction.
sortMode'single' | 'multiple'not documentedDefines whether sorting works on single column or on multiple columns.
resetPageOnSortbooleannot documentedWhen true, resets paginator to first page after sorting.
customSortboolean | undefinednot documentedWhether to use the default sorting or a custom one using sortFunction.
selectionModestring | undefinednot documentedSpecifies the selection mode, valid values are "single" and "multiple".
contextMenuSelectionanynot documentedSelected row with a context menu.
contextMenuSelectionModestringnot documentedMode of the contet menu selection.
dataKeystring | undefinednot documentedA property to uniquely identify a record in data.
metaKeySelectionboolean | undefinednot documentedDefines whether metaKey is should be considered for the selection. On touch enabled devices, metaKeySelection is turned off automatically.
compareSelectionBystringnot documentedAlgorithm to define if a row is selected, valid values are "equals" that compares by reference and "deepEquals" that compares all fields.
rowHoverboolean | undefinednot documentedAdds hover effect to rows without the need for selectionMode.
loadingboolean | undefinednot documentedDisplays a loader to indicate data load is in progress.
loadingIconstring | undefinednot documentedThe icon to show while indicating data load is in progress.
showLoaderbooleannot documentedWhether to show the loading mask when loading property is true.
scrollableboolean | undefinednot documentedWhen specified, enables horizontal and/or vertical scrolling.
scrollHeightstring | undefinednot documentedHeight of the scroll viewport in fixed pixels or the "flex" keyword for a dynamic size.
virtualScrollboolean | undefinednot documentedWhether the data should be loaded on demand during scroll.
virtualScrollItemSizenumber | undefinednot documentedHeight of a row to use in calculations of virtual scrolling.
virtualScrollOptionsScrollerOptions | undefinednot documentedWhether to use the scroller feature. The properties of scroller component can be used like an object in it.
virtualScrollDelaynumbernot documentedThe delay (in milliseconds) before triggering the virtual scroll. This determines the time gap between the user's scroll action and the actual rendering of the next set of items in the virtual scroll.
frozenWidthstring | undefinednot documentedWidth of the frozen columns container.
frozenColumns{ [klass: string]: any } | null | undefinednot documentedAn array of objects to represent dynamic columns that are frozen.
resizableColumnsboolean | undefinednot documentedWhen enabled, columns can be resized using drag and drop.
columnResizeModestringnot documentedDefines whether the overall table width should change on column resize, valid values are "fit" and "expand".
reorderableColumnsboolean | undefinednot documentedWhen enabled, columns can be reordered using drag and drop.
contextMenuanynot documentedLocal ng-template varilable of a ContextMenu.
rowTrackByFunctionnot documentedFunction to optimize the dom operations by delegating to ngForTrackBy, default algorithm checks for object identity.
filters{ [s: string]: FilterMetadata | undefined }not documentedAn array of FilterMetadata objects to provide external filters.
globalFilterFieldsstring[] | undefinednot documentedAn array of fields as string to use in global filtering.
filterDelaynumbernot documentedDelay in milliseconds before filtering the data.
filterModestringnot documentedMode for filtering valid values are "lenient" and "strict". Default is lenient.
filterLocalestring | undefinednot documentedLocale to use in filtering. The default locale is the host environment's current locale.
paginatorLocalestring | undefinednot documentedLocale to be used in paginator formatting.
totalRecordsnumbernot documentedNumber of total records, defaults to length of value when not defined.
sortFieldstring | undefined | nullnot documentedName of the field to sort data by default.
sortOrdernumber 1 Order to sort when default sorting is enabled.
multiSortMetaSortMeta[] | undefined | null null An array of SortMeta objects to sort the data by default in multiple sort mode.
selectionany null Selected row in single mode or an array of values in multiple mode.
valueTreeNode<any>[] | undefined null An array of objects to display.
virtualRowHeight
deprecated โ€” use virtualScrollItemSize property instead.
number 28 Indicates the height of rows to be scrolled.
selectionKeysanynot documentedA map of keys to control the selection state.
showGridlinesboolean false Whether to show grid lines between cells.
OutputTypeDescription
selectionChangeEventEmitter<TreeTableNode<any> | TreeTableNode<any>[] | null>Callback to invoke on selected node change.
contextMenuSelectionChangeEventEmitter<TreeTableNode>Callback to invoke on context menu selection change.
onFilterEventEmitter<TreeTableFilterEvent>Callback to invoke when data is filtered.
onNodeExpandEventEmitter<TreeTableNodeExpandEvent>Callback to invoke when a node is expanded.
onNodeCollapseEventEmitter<TreeTableNodeCollapseEvent>Callback to invoke when a node is collapsed.
onPageEventEmitter<TreeTablePaginatorState>Callback to invoke when pagination occurs.
onSortEventEmitter<any>Callback to invoke when a column gets sorted.
onLazyLoadEventEmitter<TreeTableLazyLoadEvent>Callback to invoke when paging, sorting or filtering happens in lazy mode.
sortFunctionEventEmitter<TreeTableSortEvent>An event emitter to invoke on custom sorting, refer to sorting section for details.
onColResizeEventEmitter<TreeTableColResizeEvent>Callback to invoke when a column is resized.
onColReorderEventEmitter<TreeTableColumnReorderEvent>Callback to invoke when a column is reordered.
onNodeSelectEventEmitter<TreeTableNode>Callback to invoke when a node is selected.
onNodeUnselectEventEmitter<TreeTableNodeUnSelectEvent>Callback to invoke when a node is unselected.
onContextMenuSelectEventEmitter<TreeTableContextMenuSelectEvent>Callback to invoke when a node is selected with right click.
onHeaderCheckboxToggleEventEmitter<TreeTableHeaderCheckboxToggleEvent>Callback to invoke when state of header checkbox changes.
onEditInitEventEmitter<TreeTableEditEvent>Callback to invoke when a cell switches to edit mode.
onEditCompleteEventEmitter<TreeTableEditEvent>Callback to invoke when cell edit is completed.
onEditCancelEventEmitter<TreeTableEditEvent>Callback to invoke when cell edit is cancelled with escape key.
selectionKeysChangeEventEmitter<any>Callback to invoke when selectionKeys are changed.
Template slotDescription
<ng-template #colgroup>
<ng-template #caption>
<ng-template #header>
<ng-template #body>
<ng-template #footer>
<ng-template #summary>
<ng-template #emptymessage>
<ng-template #paginatorleft>
<ng-template #paginatorright>
<ng-template #paginatordropdownitem>
<ng-template #frozenheader>
<ng-template #frozenbody>
<ng-template #frozenfooter>
<ng-template #frozencolgroup>
<ng-template #loadingicon>
<ng-template #reorderindicatorupicon>
<ng-template #reorderindicatordownicon>
<ng-template #sorticon>
<ng-template #checkboxicon>
<ng-template #headercheckboxicon>
<ng-template #togglericon>
<ng-template #paginatorfirstpagelinkicon>
<ng-template #paginatorlastpagelinkicon>
<ng-template #paginatorpreviouspagelinkicon>
<ng-template #paginatornextpagelinkicon>
<ng-template #loader>

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTBody

component[aglTreeTableBody]
InputTypeDefaultDescription
aglTreeTableBody
property columns
any[] | undefinednot documented
aglTreeTableBodyTemplate
property template
Nullable<TemplateRef<any>>not documented
frozenboolean | undefinednot documented
serializedNodesanynot documented
scrollerOptionsanynot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTScrollableView

component[ttScrollableView]
InputTypeDefaultDescription
ttScrollableView
property columns
any[] | undefinednot documented
frozenboolean | undefinednot documented
scrollHeightstring | undefined | nullnot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTSortableColumn

directive[ttSortableColumn]
InputTypeDefaultDescription
ttSortableColumn
property field
string | undefinednot documented
ttSortableColumnDisabledboolean | undefinednot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTSortIcon

componentagl-treeTableSortIcon, agl-treetable-sort-icon, agl-tree-table-sort-icon
InputTypeDefaultDescription
fieldstring | undefinednot documented
ariaLabelDescstring | undefinednot documented
ariaLabelAscstring | undefinednot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTResizableColumn

directive[ttResizableColumn]
InputTypeDefaultDescription
ttResizableColumnDisabledboolean | undefinednot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTReorderableColumn

directive[ttReorderableColumn]
InputTypeDefaultDescription
ttReorderableColumnDisabledboolean | undefinednot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTSelectableRow

directive[ttSelectableRow]
InputTypeDefaultDescription
ttSelectableRow
property rowNode
anynot documented
ttSelectableRowDisabledboolean | undefinednot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTSelectableRowDblClick

directive[ttSelectableRowDblClick]
InputTypeDefaultDescription
ttSelectableRowDblClick
property rowNode
anynot documented
ttSelectableRowDisabledboolean | undefinednot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTContextMenuRow

directive[ttContextMenuRow]
InputTypeDefaultDescription
ttContextMenuRow
property rowNode
any | undefinednot documented
ttContextMenuRowDisabledboolean | undefinednot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTCheckbox

componentagl-treeTableCheckbox, agl-treetable-checkbox, agl-tree-table-checkbox
InputTypeDefaultDescription
disabledboolean | undefinednot documented
value
property rowNode
anynot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTHeaderCheckbox

componentagl-treeTableHeaderCheckbox

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTEditableColumn

directive[ttEditableColumn]
InputTypeDefaultDescription
ttEditableColumn
property data
anynot documented
ttEditableColumnField
property field
anynot documented
ttEditableColumnDisabledboolean | undefinednot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TreeTableCellEditor

componentagl-treeTableCellEditor, agl-treetablecelleditor, agl-treetable-cell-editor
Template slotDescription
<ng-template #input>Editing state of the cell.
<ng-template #output>Display state of the cell.

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TTRow

directive[ttRow]
InputTypeDefaultDescription
ttRow
property rowNode
anynot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.

TreeTableToggler

componentagl-treeTableToggler, agl-treetabletoggler, agl-treetable-toggler
InputTypeDefaultDescription
rowNodeanynot documented

Inherited from BaseComponent

inherited
InputTypeDefaultDescription
dtObject | undefined undefined Defines scoped design tokens of the component.
unstyledboolean | undefined undefined Indicates whether the component should be rendered without styles.
ptPT | undefined undefined Used to pass attributes to DOM elements inside the component. TRUSTED INPUT ONLY. Whatever you put here is applied to the DOM as given: keys become attributes, and a key that names a DOM property is assigned to that property directly, with no sanitizer in between. That is what makes the API useful, and it means a value reaching it from a user, a database or a CMS can execute script. Treat it like markup you wrote yourself, not like data you received.
ptOptionsPassThroughOptions | undefined undefined Used to configure passthrough(pt) options of the component.