UNPKG

smart-webcomponents-angular

Version:

[![Price](https://img.shields.io/badge/price-COMMERCIAL-0098f7.svg)](https://jqwidgets.com/license/)

537 lines (536 loc) 35.5 kB
import { Table } from './../index'; import { TableColumnSizeMode, TableEditMode, TableLoadColumnStateBehavior, TableSelectionMode, TableSortMode, TableColumnGroup, TableColumn, TableConditionalFormatting, TableDataSourceSettings } from './../index'; import { AfterViewInit, ElementRef, OnInit, OnChanges, OnDestroy, SimpleChanges, EventEmitter } from '@angular/core'; import { BaseElement } from './smart.element'; import * as i0 from "@angular/core"; export { TableColumnDataType, TableColumnFreeze, TableConditionalFormattingCondition, TableConditionalFormattingFontFamily, TableConditionalFormattingFontSize, TableColumnSizeMode, TableDataSourceSettingsSanitizeHTML, TableDataSourceSettingsSanitizeHTMLRender, TableDataSourceSettingsDataFieldDataType, TableDataSourceSettingsDataSourceType, TableEditMode, TableLoadColumnStateBehavior, TableSelectionMode, TableSortMode, TableColumnGroup, TableColumn, TableConditionalFormatting, TableDataSourceSettings, TableDataSourceSettingsDataField, ElementRenderMode } from './../index'; export { Smart } from './smart.element'; export { Table } from './../index'; export declare class TableComponent extends BaseElement implements OnInit, AfterViewInit, OnDestroy, OnChanges { constructor(ref: ElementRef<Table>); private eventHandlers; nativeElement: Table; /** @description Creates the component on demand. * @param properties An optional object of properties, which will be added to the template binded ones. */ createComponent(properties?: {}): any; /** @description Enables or disables auto load state from the browser's localStorage. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is loaded, based on the value of the stateSettings property. */ get autoLoadState(): boolean; set autoLoadState(value: boolean); /** @description Enables or disables auto save state to the browser's localStorage. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the stateSettings property. */ get autoSaveState(): boolean; set autoSaveState(value: boolean); /** @description Sets or gets a list of column groups that constitute the column header hierarchy. Note: when column header hierarchy is created, column resizing and auto-sizing is not supported. */ get columnGroups(): TableColumnGroup[]; set columnGroups(value: TableColumnGroup[]); /** @description Sets or gets the min width of columns when columnSizeMode is 'auto' or when resizing columns. This property has no effect on columns with programmatically set width. */ get columnMinWidth(): string | number; set columnMinWidth(value: string | number); /** @description Sets or gets whether the reordering of columns is enabled. */ get columnReorder(): boolean; set columnReorder(value: boolean); /** @description Sets or gets whether the resizing of columns is enabled. Note: column sizes continue to adhere to the behavior of the standard HTML table element's table-layout: fixed, upon which smart-table is based. */ get columnResize(): boolean; set columnResize(value: boolean); /** @description This property affects the table sizing, when the columnSizeMode is 'default'. When 'columnResizeNormalize' is false, the Table will add an additional TH element, if all table columns have the 'width' property set. This is done in order to maintain your width settings. Otherwise, when the property is set to true, the Table will auto-fill the remaining space similar to the layout of standard HTML Tables. */ get columnResizeNormalize(): boolean; set columnResizeNormalize(value: boolean); /** @description Sets or gets whether when resizing a column, a feedback showing the new column width in px will be displayed. */ get columnResizeFeedback(): boolean; set columnResizeFeedback(value: boolean); /** @description Describes the columns properties. */ get columns(): TableColumn[]; set columns(value: TableColumn[]); /** @description Sets or gets details about conditional formatting to be applied to the Table's cells. */ get conditionalFormatting(): TableConditionalFormatting[]; set conditionalFormatting(value: TableConditionalFormatting[]); /** @description Sets or gets the column menu. When you set this property to true, each column will have a column menu. From the column menu, you will be able to sort, filter, show or hide columns. */ get columnMenu(): boolean; set columnMenu(value: boolean); /** @description Sets or gets the column sizing behavior. In 'auto' mode Columns are automatically sized based on their content and the value of the columnMinWidth property, unless there is not enough space in the Table, in which case ellipses are shown. User-set static column width is still respected. In 'default' mode Columns are sized according to the rules of the standard HTML table element's table-layout: fixed. Custom width can also be applied to columns in this case by setting the column width property. */ get columnSizeMode(): TableColumnSizeMode | string; set columnSizeMode(value: TableColumnSizeMode | string); /** @description Sets or gets whether the "Conditional Formatting" button appears in the Table's header (toolbar). Clicking this button opens a dialog with formatting options. */ get conditionalFormattingButton(): boolean; set conditionalFormattingButton(value: boolean); /** @description This property determines the time in milliseconds after which the Table data is updated, when you vertically scroll. */ get deferredScrollDelay(): number; set deferredScrollDelay(value: number); /** @description When binding the dataSource property directly to an array (as opposed to an instance of JQX.DataAdapter), sets or gets the name of the data field in the source array to bind row ids to. */ get dataRowId(): string; set dataRowId(value: string); /** @description Determines the data source of the table component. The data source of the Table can be a regular Array or a DataAdapter instance. You can read more about the dataAdapter here - https://www.htmlelements.com/docs/data-adapter/. */ get dataSource(): any; set dataSource(value: any); /** @description Sets the grid's data source settings when the dataSource property is set to an Array or URL. */ get dataSourceSettings(): TableDataSourceSettings; set dataSourceSettings(value: TableDataSourceSettings); /** @description Disables the interaction with the element. */ get dataTransform(): { (record: any): void; }; set dataTransform(value: { (record: any): void; }); /** @description Sets or gets whether the Table can be edited. */ get disabled(): boolean; set disabled(value: boolean); /** @description Sets or gets the edit mode. */ get editing(): boolean; set editing(value: boolean); /** @description Sets or gets whether Row hierarchies are expanded by default, when created. Use this property when you want your groups to be expanded by default, when the Table is grouped or when you use the Table in tree mode. */ get editMode(): TableEditMode | string; set editMode(value: TableEditMode | string); /** @description Sets or gets whether the Table can be filtered. By default, the Table can be filtered by all string and numeric columns through a filter input in the header. */ get expandHierarchy(): boolean; set expandHierarchy(value: boolean); /** @description Sets or gets whether the Table can be filtered via a filter row. */ get filtering(): boolean; set filtering(value: boolean); /** @description Sets or gets the Table's filter operator. It determines whether 'and' or 'or' is used when applying column filters - cellvalue1 && cellvalue2 vs cellvalue1 || cellvalue2 */ get filterRow(): boolean; set filterRow(value: boolean); /** @description Sets or gets the id of an HTML template element to be applied as a custom filter template. */ get filterOperator(): boolean; set filterOperator(value: boolean); /** @description Sets or gets the id of an HTML template element to be applied as footer row(s). */ get filterTemplate(): string; set filterTemplate(value: string); /** @description Sets or gets whether Excel-like formulas can be passed as cell values. Formulas are always preceded by the = sign and are re-evaluated when cell values are changed. This feature depends on the third-party free plug-in formula-parser (the file formula-parser.min.js has to be referenced). */ get footerRow(): string; set footerRow(value: string); /** @description Sets or gets whether the Table's footer is sticky/frozen. */ get formulas(): boolean; set formulas(value: boolean); /** @description Sets or gets whether the Table's column header is sticky/frozen. */ get freezeFooter(): boolean; set freezeFooter(value: boolean); /** @description Sets or gets whether grouping the Table is enabled. */ get freezeHeader(): boolean; set freezeHeader(value: boolean); /** @description Allows to customize the header of the element. The property accepts the id of an HTMLElement, HTMLTemplateElement, function or a string that will be parsed as HTML. When set to a function it contains one argument - the header element of the Table. */ get grouping(): boolean; set grouping(value: boolean); /** @description Sets or gets whether navigation with the keyboard is enabled in the Table. */ get groupFormatFunction(): { (settings: { value: any; row: string | number; column: string; template?: any; }): void; }; set groupFormatFunction(value: { (settings: { value: any; row: string | number; column: string; template?: any; }): void; }); /** @description Sets or gets whether the checkboxes are displayed in the selection column. */ get headerRow(): string | HTMLElement | Function; set headerRow(value: string | HTMLElement | Function); /** @description Sets or gets the behavior when loading column settings either via autoLoadState or loadState. Applicable only when stateSettings contains 'columns'. */ get keyboardNavigation(): boolean; set keyboardNavigation(value: boolean); /** @description Sets or gets the license which unlocks the product. */ get hideSelectionColumn(): boolean; set hideSelectionColumn(value: boolean); /** @description Sets or gets the language. Used in conjunction with the property messages. */ get loadColumnStateBehavior(): TableLoadColumnStateBehavior | string; set loadColumnStateBehavior(value: TableLoadColumnStateBehavior | string); /** @description Sets or gets an object specifying strings used in the element that can be localized. Used in conjunction with the property locale. */ get license(): string; set license(value: string); /** @description Sets or gets the page size (when paging is enabled). */ get locale(): string; set locale(value: string); /** @description Sets or gets the current (zero-based) page index (when paging is enabled). */ get messages(): any; set messages(value: any); /** @description Sets or gets whether paging is enabled. */ get onCellRender(): { (data: any, dataField: string, value: any, cell: HTMLTableCellElement): void; }; set onCellRender(value: { (data: any, dataField: string, value: any, cell: HTMLTableCellElement): void; }); /** @description Sets or gets the value indicating whether the element is aligned to support locales using right-to-left fonts. */ get onColumnRender(): { (dataField: string, headerCell: HTMLTableCellElement): void; }; set onColumnRender(value: { (dataField: string, headerCell: HTMLTableCellElement): void; }); /** @description Sets or gets a string template to be applied as row detail template. Each cell value in the master row can be placed in the detail row by specifying the cell's data field in double curly brackets (e.g. {{price}}. The details can then be displayed by expanding the row by clicking it. */ get onInit(): { (): void; }; set onInit(value: { (): void; }); /** @description Sets or gets a callback function with 3 arguments - column, filterConditions, filterInputTemplateString. The function should return the new filter input. */ get onLoad(): { (): void; }; set onLoad(value: { (): void; }); /** @description Sets or gets an array of the Table's selected row's ids. */ get onUpdateComplete(): { (): void; }; set onUpdateComplete(value: { (): void; }); /** @description Sets or gets whether row selection (via checkboxes) is enabled. */ get pageSize(): number; set pageSize(value: number); /** @description Sets or gets the selection mode. Only applicable when selection is enabled. */ get pageIndex(): number; set pageIndex(value: number); /** @description Sets or gets whether row selection (via checkboxes) is hierarchical. When a parent row is selected, all sub rows are selected, too. */ get paging(): boolean; set paging(value: boolean); /** @description Determines the sorting mode of the Table. */ get rightToLeft(): boolean; set rightToLeft(value: boolean); /** @description Sets or gets what settings of the Table's state can be saved (by autoSaveState or saveState) or loaded (by autoLoadState or loadState). */ get rowDetailTemplate(): string; set rowDetailTemplate(value: string); /** @description Determines the theme. Theme defines the look of the element */ get onFilterRowInput(): any; set onFilterRowInput(value: any); /** @description Sets or gets whether when hovering a cell with truncated content, a tooltip with the full content will be shown. */ get selected(): any[]; set selected(value: any[]); /** @description Enables or disables HTML virtualization. This functionality allows for only visible rows to be rendered, resulting in an increased Table performance. */ get selection(): boolean; set selection(value: boolean); /** @description undefined */ get selectionMode(): TableSelectionMode | string; set selectionMode(value: TableSelectionMode | string); /** @description undefined */ get selectionByHierarchy(): boolean; set selectionByHierarchy(value: boolean); /** @description undefined */ get sort(): { (dataSource: any, sortColumns: string[], directions: string[], defaultCompareFunctions: { (firstRecord: any, secondRecord: any): number; }[]): void; }; set sort(value: { (dataSource: any, sortColumns: string[], directions: string[], defaultCompareFunctions: { (firstRecord: any, secondRecord: any): number; }[]): void; }); /** @description undefined */ get sortMode(): TableSortMode | string; set sortMode(value: TableSortMode | string); /** @description undefined */ get stateSettings(): string[]; set stateSettings(value: string[]); /** @description undefined */ get theme(): string; set theme(value: string); /** @description undefined */ get tooltip(): boolean; set tooltip(value: boolean); /** @description undefined */ get virtualization(): boolean; set virtualization(value: boolean); /** @description This event is triggered when a cell edit operation has been initiated. * @param event. The custom event. Custom event was created with: event.detail( id, dataField, row, value) * id - The id of the row. * dataField - The data field of the cell's column. * row - The data of the cell's row. * value - The data value of the cell. */ onCellBeginEdit: EventEmitter<CustomEvent>; /** @description This event is triggered when a cell has been clicked. * @param event. The custom event. Custom event was created with: event.detail( id, dataField, row, value, originalEvent) * id - The cell's row id. * dataField - The data field of the cell's column. * row - The data of the cell's row. * value - The data value of the cell. * originalEvent - The 'click' event object. */ onCellClick: EventEmitter<CustomEvent>; /** @description This event is triggered when a cell has been edited. * @param event. The custom event. Custom event was created with: event.detail( id, dataField, row, value) * id - The id of the row. * dataField - The data field of the cell's column. * row - The new data of the cell's row. * value - The data value of the cell. */ onCellEndEdit: EventEmitter<CustomEvent>; /** @description This event is triggered when the selection is changed. Within the event handler you can get the selection by using the 'getSelection' method. * @param event. The custom event. Custom event was created with: event.detail( type) * type - The type of action that initiated the selection change. Possible types: 'programmatic', 'interaction', 'remove'. */ onChange: EventEmitter<CustomEvent>; /** @description This event is triggered when a row has been collapsed. * @param event. The custom event. Custom event was created with: event.detail( id, record) * id - The id of the collapsed row. * record - The data of the collapsed row. */ onCollapse: EventEmitter<CustomEvent>; /** @description This event is triggered when a row has been expanded. * @param event. The custom event. Custom event was created with: event.detail( id, record) * id - The id of the expanded row. * record - The (aggregated) data of the expanded row. */ onExpand: EventEmitter<CustomEvent>; /** @description This event is triggered when a column header cell has been clicked. * @param event. The custom event. Custom event was created with: event.detail( dataField) * dataField - The data field of the cell's column. */ onColumnClick: EventEmitter<CustomEvent>; /** @description This event is triggered when a column menu is closed. * @param event. The custom event. Custom event was created with: event.detail( dataField) * dataField - The data field of the column. */ onCloseColumnMenu: EventEmitter<CustomEvent>; /** @description This event is triggered when a column has been resized via dragging or double-click. * @param event. The custom event. Custom event was created with: event.detail( dataField, headerCellElement, width) * dataField - The data field of the column. * headerCellElement - The column's header cell HTML element. * width - The new width of the column. */ onColumnResize: EventEmitter<CustomEvent>; /** @description This event is triggered when a filtering-related action is made. * @param event. The custom event. Custom event was created with: event.detail( action, filters) * action - The filtering action. Possible actions: 'add', 'remove'. * filters - The added filters. Only when action is 'add'. */ onFilter: EventEmitter<CustomEvent>; /** @description This event is triggered when a grouping-related action is made. * @param event. The custom event. Custom event was created with: event.detail( action, dataField, label, path) * action - The grouping action. Possible actions: 'add', 'collapse', 'expand', 'remove'. * dataField - The data field of the column whose grouping is modified. * label - The label of the group (only when collapsing/expanding). * path - The group's path (only when collapsing/expanding). The path includes the path to the expanded/collapsed group starting from the root group. The indexes are joined with '.'. This parameter is available when the 'action' is 'expand' or 'collapse'. */ onGroup: EventEmitter<CustomEvent>; /** @description This event is triggered when a column menu is opened. * @param event. The custom event. Custom event was created with: event.detail( dataField) * dataField - The data field of the column. */ onOpenColumnMenu: EventEmitter<CustomEvent>; /** @description This event is triggered when a paging-related action is made. * @param event. The custom event. Custom event was created with: event.detail( action) * action - The paging action. Possible actions: 'pageIndexChange', 'pageSizeChange'. */ onPage: EventEmitter<CustomEvent>; /** @description This event is triggered when a row edit operation has been initiated (only when editMode is 'row'). * @param event. The custom event. Custom event was created with: event.detail( id, row) * id - The id of the row. * row - The data of the row. */ onRowBeginEdit: EventEmitter<CustomEvent>; /** @description This event is triggered when a row has been edited (only when editMode is 'row'). * @param event. The custom event. Custom event was created with: event.detail( id, row) * id - The id of the row. * row - The new data of the row. */ onRowEndEdit: EventEmitter<CustomEvent>; /** @description This event is triggered when a column header cell has been clicked or sorting is applied programmatically using the Table API. * @param event. The custom event. Custom event was created with: event.detail( columns, sortDataFields, sortOrders, sortDataTypes, type) * columns - An array with information about the columns the Table has been sorted by. * sortDataFields - An array with information about the data fields the Table has been sorted by. * sortOrders - An array with information about the columns sort orders the Table has been sorted by. * sortDataTypes - An array with information about the columns data types the Table has been sorted by. * type - The type of action that initiated the data sort. Possible types: 'programmatic', 'interaction' */ onSort: EventEmitter<CustomEvent>; /** @description Adds a new row. When you invoke the method, pass a JSON object with the row's data. * @param {any} data. JSON object with the new row's data. Sample JSON: {firstName: 'Peter', lastName: 'Fuller'}. */ addRow(data: any): void; /** @description Adds a filter to a specific column. * @param {string} dataField. The column's data field. * @param {any} filter. FilterGroup object or a Filter expression. Filter expression like: 'startsWith B'. Example 2: ['contains Andrew or contains Nancy'], Example 3: ['quantity', '&lt;= 3 and &gt;= 8']. Filter conditions which you can use in the expressions: '=', 'EQUAL','&lt;&gt;', 'NOT_EQUAL', '!=', '&lt;', 'LESS_THAN','&gt;', 'GREATER_THAN', '&lt;=', 'LESS_THAN_OR_EQUAL', '&gt;=', 'GREATER_THAN_OR_EQUAL','starts with', 'STARTS_WITH','ends with', 'ENDS_WITH', '', 'EMPTY', 'CONTAINS','DOES_NOT_CONTAIN', 'NULL','NOT_NULL' */ addFilter(dataField: string, filter: any): void; /** @description Groups by a column. * @param {string} dataField. The column's data field. */ addGroup(dataField: string): void; /** @description Begins an edit operation. * @param {string | number} row. The id of the row to edit. * @param {string} dataField?. The dataField of the cell's column. May be omitted when <strong>editMode</strong> is <em>'row'</em>. */ beginEdit(row: string | number, dataField?: string): void; /** @description Begins an update operation. Suspends all table refreshes and renders. */ beginUpdate(): void; /** @description Ends the current edit operation and discards changes. */ cancelEdit(): void; /** @description Clears applied filters. */ clearFilters(): void; /** @description Clears grouping. */ clearGrouping(): void; /** @description Clears selection. */ clearSelection(): void; /** @description Clears the Table sorting. */ clearSort(): void; /** @description Collapses all rows (in tree mode). */ collapseAllRows(): void; /** @description Collapses all groups (in tree mode). */ collapseAllGroups(): void; /** @description Collapses all row details. Rows that have details defined via the rowDetailTemplate will be collapsed. */ collapseAllRowDetails(): void; /** @description Collapses a group. * @param {string} index. The group's hierarchical index. */ collapseGroup(index: string): void; /** @description Collapses a row (in tree mode). * @param {string | number} rowId. The id of the row to collapse. */ collapseRow(rowId: string | number): void; /** @description Disables a selection of a row. When the 'selection' property is set to 'true', selection is enabled for all rows by default. * @param {string | number | (string | number)[]} rowId. The id of the row (or an array of row ids) to select. */ disableSelect(rowId: string | number | (string | number)[]): void; /** @description Enables a selection of a row, if it was previously disabled through a 'disableSelect' method call. When the 'selection' property is set to 'true', selection is enabled for all rows by default. * @param {string | number | (string | number)[]} rowId. The id of the row (or an array of row ids) to select. */ enableSelect(rowId: string | number | (string | number)[]): void; /** @description Ends the current edit operation and saves changes. */ endEdit(): void; /** @description Ends an update operation. Resumes all table refreshes and renders. Re-renders the Table. * @param {boolean} refresh?. Optionally you can pass 'false' in case you need to manually call the 'refresh' method. By default, the table is re-rendered. */ endUpdate(refresh?: boolean): void; /** @description Expands all rows (in tree mode). */ expandAllRows(): void; /** @description Expands all groups (in tree mode). */ expandAllGroups(): void; /** @description Expands all row details. Rows that have details defined via rowDetailTemplate will be expanded. */ expandAllRowDetails(): void; /** @description Expands a group. * @param {string} index. The group's hierarchical index. */ expandGroup(index: string): void; /** @description Expands a row (in tree mode). * @param {string | number} rowId. The id of the row to expand. */ expandRow(rowId: string | number): void; /** @description Exports the Table's data. * @param {string} dataFormat. The file format to export to. Supported formats: 'csv', 'html', 'json', 'pdf', 'tsv', 'xlsx', 'xml'. * @param {string} fileName?. The name of the file to export to * @param {boolean} exportFiltered?. If set to true, exports only filtered records * @param {Function} callback?. A callback function to pass the exported data to (if fileName is not provided) * @returns {any} */ exportData(dataFormat: any, fileName?: any, exportFiltered?: any, callback?: any): Promise<any>; /** @description Returns an array of selected row ids. * @returns {(string | number)[]} */ getSelection(): Promise<any>; /** @description Returns the Table's state, containing information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns. It can then be stored or passed to the method loadState. * @returns {any} */ getState(): Promise<any>; /** @description Returns the value of a cell. * @param {string | number} row. The id of the cell's row. * @param {string} dataField. The dataField of the cell's column. * @returns {any} */ getValue(row: any, dataField: any): Promise<any>; /** @description Gets a column property. * @param {string} columnDataField. Column field name. * @param {string} propertyName. Column property name. * @returns {any} */ getColumnProperty(columnDataField: any, propertyName: any): Promise<any>; /** @description Checks whether a group is expanded and returns true or false. false is returned when the group index is undefined, too. * @param {string} index. The group's hierarchical index. * @returns {boolean} */ isGroupExpanded(index: any): Promise<any>; /** @description Loads the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is loaded, based on the value of the stateSettings property. * @param {any} state?. An object returned by one of the methods <strong>getState</strong> or <strong>saveState</strong>. If a state is not passed, the method tries to load the state from the browser's localStorage. */ loadState(state?: any): void; /** @description Navigates to a page. * @param {number} pageIndex. The zero-based page index to navigate to. */ navigateTo(pageIndex: number): void; /** @description Refreshes the table. */ refresh(): void; /** @description Removes filters applied to a specific column. * @param {string} dataField. The column's data field. */ removeFilter(dataField: string): void; /** @description Removes grouping by a column. * @param {string} dataField. The column's data field. */ removeGroup(dataField: string): void; /** @description Removes a row by its id. * @param {string | number} row. The id of the cell's row. */ removeRow(row: string | number): void; /** @description Resets the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is cleared, based on the value of the stateSettings property. */ resetState(): void; /** @description Saves the Table's state. Information about columns, expanded rows, selected rows, applied fitering, grouping, and sorted columns is saved, based on the value of the stateSettings property. * @returns {any} */ saveState(): Promise<any>; /** @description Selects one or more rows. * @param {string | number | (string | number)[]} rowId. The id of the row (or an array of row ids) to select. */ select(rowId: string | number | (string | number)[]): void; /** @description Sets the value of a cell. * @param {string | number} row. The id of the cell's row. * @param {string} dataField. The dataField of the cell's column. * @param {any} value. The new value of the cell. */ setValue(row: string | number, dataField: string, value: any): void; /** @description Sorts the Table by a column. * @param {string} columnDataField. Column field name. * @param {string} sortOrder?. Sort order. Possible values: 'asc' (ascending), 'desc' (descending), and null (removes sorting by column). If not provided, toggles the sorting. */ sortBy(columnDataField: string, sortOrder?: string): void; /** @description Sets a column property. * @param {string} columnDataField. Column field name. * @param {string} propertyName. Column property name. * @param {any} propertyValue. Property value. */ setColumnProperty(columnDataField: string, propertyName: string, propertyValue: any): void; /** @description Updates a table row. The method expects two parameters - row id and JSON object with the new row data. * @param {string | number} rowId. The id of the row. * @param {any} data. JSON object with the new row's data. Example: {firstName: 'Peter', lastName: 'Fuller'}. */ updateRow(rowId: string | number, data: any): void; /** @description Unselects one or more rows. * @param {string | number | (string | number)[]} rowId. The id of the row (or an array of row ids) to unselect. */ unselect(rowId: string | number | (string | number)[]): void; get isRendered(): boolean; ngOnInit(): void; ngAfterViewInit(): void; ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; /** @description Add event listeners. */ private listen; /** @description Remove event listeners. */ private unlisten; static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>; static ɵdir: i0.ɵɵDirectiveDeclaration<TableComponent, "smart-table, [smart-table]", ["smart-table"], { "autoLoadState": "autoLoadState"; "autoSaveState": "autoSaveState"; "columnGroups": "columnGroups"; "columnMinWidth": "columnMinWidth"; "columnReorder": "columnReorder"; "columnResize": "columnResize"; "columnResizeNormalize": "columnResizeNormalize"; "columnResizeFeedback": "columnResizeFeedback"; "columns": "columns"; "conditionalFormatting": "conditionalFormatting"; "columnMenu": "columnMenu"; "columnSizeMode": "columnSizeMode"; "conditionalFormattingButton": "conditionalFormattingButton"; "deferredScrollDelay": "deferredScrollDelay"; "dataRowId": "dataRowId"; "dataSource": "dataSource"; "dataSourceSettings": "dataSourceSettings"; "dataTransform": "dataTransform"; "disabled": "disabled"; "editing": "editing"; "editMode": "editMode"; "expandHierarchy": "expandHierarchy"; "filtering": "filtering"; "filterRow": "filterRow"; "filterOperator": "filterOperator"; "filterTemplate": "filterTemplate"; "footerRow": "footerRow"; "formulas": "formulas"; "freezeFooter": "freezeFooter"; "freezeHeader": "freezeHeader"; "grouping": "grouping"; "groupFormatFunction": "groupFormatFunction"; "headerRow": "headerRow"; "keyboardNavigation": "keyboardNavigation"; "hideSelectionColumn": "hideSelectionColumn"; "loadColumnStateBehavior": "loadColumnStateBehavior"; "license": "license"; "locale": "locale"; "messages": "messages"; "onCellRender": "onCellRender"; "onColumnRender": "onColumnRender"; "onInit": "onInit"; "onLoad": "onLoad"; "onUpdateComplete": "onUpdateComplete"; "pageSize": "pageSize"; "pageIndex": "pageIndex"; "paging": "paging"; "rightToLeft": "rightToLeft"; "rowDetailTemplate": "rowDetailTemplate"; "onFilterRowInput": "onFilterRowInput"; "selected": "selected"; "selection": "selection"; "selectionMode": "selectionMode"; "selectionByHierarchy": "selectionByHierarchy"; "sort": "sort"; "sortMode": "sortMode"; "stateSettings": "stateSettings"; "theme": "theme"; "tooltip": "tooltip"; "virtualization": "virtualization"; }, { "onCellBeginEdit": "onCellBeginEdit"; "onCellClick": "onCellClick"; "onCellEndEdit": "onCellEndEdit"; "onChange": "onChange"; "onCollapse": "onCollapse"; "onExpand": "onExpand"; "onColumnClick": "onColumnClick"; "onCloseColumnMenu": "onCloseColumnMenu"; "onColumnResize": "onColumnResize"; "onFilter": "onFilter"; "onGroup": "onGroup"; "onOpenColumnMenu": "onOpenColumnMenu"; "onPage": "onPage"; "onRowBeginEdit": "onRowBeginEdit"; "onRowEndEdit": "onRowEndEdit"; "onSort": "onSort"; }, never>; }