You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.
import { MtxGridModule } from '@ng-matero/extensions/data-grid';
Directives
MtxGrid
Selector: [mtx-grid]
Exported as: mtxGrid
Properties
Basic
Name
Description
@Input() columns: MtxGridColumn[]
The grid columns defination.
@Input() data: any[]
The grid data source.
@Input() length: number
The length of the total number of data. Defaulted to 0.
@Input() loading: boolean
Whether the table loading is ended. Defaulted to false.
@Input() trackBy: TrackByFunction<any>
Tracking function that will be used to check the differences in data changes.
@Input() columnResizable: boolean
Whether the column can be resized. Defaulted to false.
Page
Name
Description
@Input() pageOnFront: boolean
Whether paging the data just on front end. Defaulted to true.
@Input() showPaginator: boolean
Whether show the paginator. Defaulted to true.
@Input() pageDisabled: boolean
Whether the paginator is disabled. Defaulted to false.
@Input() showFirstLastButtons: boolean
Whether to show the first/last buttons UI to the user. Defaulted to true.
@Input() pageIndex: number
The zero-based page index of the displayed list of items. Defaulted to 0.
@Input() pageSize: number
Number of items to display on a page. By default set to 10.
@Input() pageSizeOptions: number[]
The set of provided page size options to display to the user. By default set to [10, 50, 100]
@Input() hidePageSize: boolean
Whether hide the pagesize. Defaulted to false.
@Output() page: EventEmitter<PageEvent>
Event emitted when the paginator changes the page size or page index.
@Input() paginationTemplate: TemplateRef<any>
The pagination template.
Sort
Name
Description
@Input() sortOnFront: boolean
Whether sort data just on front end. Defaulted to true.
@Input() sortActive: string
The id of the most recently sorted MatSortable.
@Input() sortDirection: SortDirection
The sort direction of the currently active MatSortable.
@Input() sortDisableClear: boolean
Whether to disable the user from clearing the sort by finishing the sort direction cycle. May be overriden by the column's disable clear definition. Defaulted to false.
@Input() sortDisabled: boolean
Whether the grid sort is disabled. Defaulted to false.
@Input() sortStart: 'asc' | 'desc'
The direction to set when an MatSortable is initially sorted. May be overriden by the column's sort definition. Defaulted to asc.
@Output() sortChange: EventEmitter<sort>
Event emitted when the user changes either the active sort or sort direction.
Expansion
Name
Description
@Input() expandable: boolean
Whether the row can be expanded. Defaulted to false.
@Input() expansionTemplate: TemplateRef<any>
The template of expandable row.
@Output() expansionChange: EventEmitter<any>
Event emitted when the user toggle the expandable row.
Selection
Name
Description
@Input() multiSelectable: boolean
Whether the user can selecte multiple row or cell. Defaulted to true.
@Input() rowSelectable: boolean
Whether the row can be selectable. Defaulted to false.
@Input() rowSelected: any[]
The row selected items default. Defaulted to [].
@Input() hideRowSelectionCheckbox: boolean
Whether hide the row selection checkbox. Defaulted to false.