projects/components/widgets/data/table/src/table.component.doc.ts
The wmTable
is the data grid used to display data in a tabular manner.
wmTable
can be bound to variables and display the data associated with them.
addRow |
addRow()
|
This method is used to add a new row
Returns :
void
|
cancelRow |
cancelRow()
|
This method is used to cancel a row edit/ new operation
Returns :
void
|
clearFilter | ||||||||
clearFilter(skipFilter?: boolean)
|
||||||||
This method is used to clear the filters applied on data table.
Parameters :
Returns :
void
|
deleteRow | ||||||||
deleteRow(event?: MouseEvent)
|
||||||||
This method is used to delete a row
Parameters :
Returns :
void
|
deselectItem | ||||||||
deselectItem(item: Object | number)
|
||||||||
This method is used to deselect the item/ row in the Data Table
Parameters :
Returns :
void
|
editRow | ||||||||
editRow(event?: MouseEvent)
|
||||||||
This method is used to edit a row in the Data Table
Parameters :
Returns :
void
|
hideEditRow |
hideEditRow()
|
This method is used to hide the current edit/ new row and go back to view mode
Returns :
void
|
onBeforedatarender | ||||||||||||||||
onBeforedatarender(widget: any, $data: any, $columns: any)
|
||||||||||||||||
This event will be called the before the data is rendered in the Data Table
Parameters :
Returns :
void
|
onBeforeformrender | ||||||||||||||||||||
onBeforeformrender($event: MouseEvent, widget: any, row: any, $operation: string)
|
||||||||||||||||||||
This event is fired on the edit of a row and before the inline form is rendered.
Parameters :
Returns :
void
|
onBeforerowdelete | ||||||||||||||||||||
onBeforerowdelete($event: MouseEvent, widget: any, row: any, options: any)
|
||||||||||||||||||||
This event is fired before a record is deleted in the Data Table.
Parameters :
Returns :
void | boolean
if the callback returns false, delete is stopped. Anything else, delete continues with modified data. |
onBeforerowinsert | ||||||||||||||||||||
onBeforerowinsert($event: MouseEvent, widget: any, row: any, options: any)
|
||||||||||||||||||||
This event will be called before a new record is inserted in the underlying data entity.
Parameters :
Returns :
void | boolean
if the callback returns false, insert is stopped. Anything else, insert continues with modified data. |
onBeforerowupdate | ||||||||||||||||||||
onBeforerowupdate($event: MouseEvent, widget: any, row: any, options: any)
|
||||||||||||||||||||
This event will be called before a record is updated to the underlying data entity.
Parameters :
Returns :
void | boolean
if the callback returns false, update is stopped. Anything else, update continues with modified data. |
onClick | ||||||||||||||||
onClick($event: MouseEvent, widget: any, row: any)
|
||||||||||||||||
This event handler is called whenever the widget is clicked.
Parameters :
Returns :
void
|
onColumndeselect | ||||||||||||
onColumndeselect($event: MouseEvent, $data: any)
|
||||||||||||
This event will be called when a column in Data Table is deselected.
Parameters :
Returns :
void
|
onColumnselect | ||||||||||||
onColumnselect($event: MouseEvent, $data: any)
|
||||||||||||
This event will be called when a column in Data Table is selected.
Parameters :
Returns :
void
|
onDatarender | ||||||||||||
onDatarender(widget: any, $data: any)
|
||||||||||||
This event will be called when the data is rendered in the Data Table.
Parameters :
Returns :
void
|
onDeselect | ||||||||||||||||
onDeselect($event: MouseEvent, widget: any, row: any)
|
||||||||||||||||
This event will be called when a row from Data Table is deselected.
Parameters :
Returns :
void
|
onError | ||||||||||||||||||||
onError($event: MouseEvent, widget: any, $data: any, $operation: string)
|
||||||||||||||||||||
This event will be called after the edit/insert/delete operation returns a failure response.
Parameters :
Returns :
void
|
onExport | ||||||||
onExport($data: any)
|
||||||||
This event will be called before downloading the file. Any data changes like file format changes, field expression, size changes etc can be performed here. Returning false from the script will stop the file download.
Parameters :
Returns :
void | boolean
Returning false from the script will stop the file download. Else, file is dowloaded with modfiied $data options |
onFormrender | ||||||||||||||||||||
onFormrender($event: MouseEvent, widget: any, formWidgets: any, $operation: string)
|
||||||||||||||||||||
This event is fired after the inline form is rendered.
Parameters :
Returns :
void
|
onHeaderonClick | ||||||||||||
onHeaderonClick($event: MouseEvent, $data: any)
|
||||||||||||
This event will be called when the Data Table header is clicked.
Parameters :
Returns :
void
|
onHide |
onHide()
|
This event will be called when the Data Table is hidden.
Returns :
void
|
onRowclick | ||||||||||||||||
onRowclick($event: MouseEvent, widget: any, row: any)
|
||||||||||||||||
This event will be called when a row in Data Table is clicked.
Parameters :
Returns :
void
|
onRowdblclick | ||||||||||||||||
onRowdblclick($event: MouseEvent, widget: any, row: any)
|
||||||||||||||||
This event will be called when a row in Data Table is double-clicked.
Parameters :
Returns :
void
|
onRowdelete | ||||||||||||||||
onRowdelete($event: MouseEvent, widget: any, row: any)
|
||||||||||||||||
This event will be called when a record is deleted from the underlying data entity.
Parameters :
Returns :
void
|
onRowinsert | ||||||||||||||||
onRowinsert($event: MouseEvent, widget: any, row: any)
|
||||||||||||||||
This event will be called after a new record is inserted in the underlying data entity.
Parameters :
Returns :
void
|
onRowupdate | ||||||||||||||||
onRowupdate($event: MouseEvent, widget: any, row: any)
|
||||||||||||||||
This event will be called after a record is updated to the underlying data entity.
Parameters :
Returns :
void
|
onSelect | ||||||||||||||||
onSelect($event: MouseEvent, widget: any, row: any)
|
||||||||||||||||
This event will be called when a row from Data Table is selected.
Parameters :
Returns :
void
|
onSetrecord | ||||||||||||
onSetrecord($event: MouseEvent, $data: any)
|
||||||||||||
This event handler is called when the data is set using the pagination.
Parameters :
Returns :
void
|
onShow |
onShow()
|
This event will be called when the Data Table is shown.
Returns :
void
|
onSort | ||||||||||||
onSort($event: MouseEvent, $data: any)
|
||||||||||||
This event will be called when the Data Table header is clicked to sort by a particular column.
Parameters :
Returns :
void
|
onTap | ||||||||||||
onTap($event: TouchEvent, $data: any)
|
||||||||||||
Callback function which will be triggered when the tap event is triggered on a widget.
Parameters :
Returns :
void
|
redraw | ||||||||
redraw(forceRender?: boolean)
|
||||||||
This method is used to redraw the data table
Parameters :
Returns :
void
|
refreshData | ||||||||
refreshData(isSamePage?: boolean)
|
||||||||
This method is used to refresh the data in data table
Parameters :
Returns :
void
|
saveRow |
saveRow()
|
This method is used to save a row
Returns :
void
|
selectItem | ||||||||
selectItem(item: Object | number)
|
||||||||
This method is used to select the item/ row.
Parameters :
Returns :
void
|
class |
Type : string
|
Class of the widget. |
confirmdelete |
Type : string
|
Default value : 'Are you sure you want to delete this?'
|
A message to show in a confirm dialog so that the user can confirm that they want to delete this row. Leave blank to delete without asking the user to confirm. Bindable: |
dataset |
Type : any
|
This property specifies the datasource from which data is fetched for the data table. Bindable: |
deletecanceltext |
Type : string
|
Default value : 'Cancel'
|
This text will be displayed on cancel button for delete confirm dialog. Bindable: |
deletemessage |
Type : string
|
Default value : 'Record deleted successfully'
|
This message will be displayed, when data is deleted by table. Bindable: |
deleteoktext |
Type : string
|
Default value : 'Ok'
|
This text will be displayed on confirm button for delete confirm dialog. Bindable: |
enablecolumnselection |
Type : boolean
|
Default value : false
|
If this property is enabled, columns in data table can be selected by clicking the column header cells. |
enablesort |
Type : boolean
|
Default value : true
|
If this property is enabled, data table can be sorted by clicking the column header cells. |
errormessage |
Type : string
|
This message will be displayed, if there is an error during the CRUD operation. Bindable: |
exportdatasize |
Type : number
|
Default value : 100
|
This property specifies the number of records to be exported. |
exportformat |
Type : string
|
Export menu is shown in the header with selected export format options. Data will be downloaded in respective format selected in the export menu by user. Allowed Values: |
filtermode |
Type : string
|
Enable filter in Data Table widget. Allowed Values:
|
formposition |
Type : string
|
This property defines where to display the new row form on click of the new button. Allowed Values: |
gridclass |
Type : string
|
Default value : 'table-bordered table-striped table-hover'
|
Classes will be applied to the data table. |
gridfirstrowselect |
Type : boolean
|
Default value : false
|
If this property is enabled, the first record of the data table will be selected automatically when the data table is displayed. |
iconclass |
Type : string
|
Icon Class to be shown in data table header. Bindable: |
insertmessage |
Type : string
|
Default value : 'Record added successfully'
|
This message will be displayed, when data is inserted. Bindable: |
loadingdatamsg |
Type : string
|
Default value : 'Loading...'
|
This message will be displayed when waiting for data to load. Bindable: |
loadingicon |
Type : string
|
Default value : 'fa fa-circle-o-notch fa-spin'
|
This property can assign an icon that is shown while loading records. Bindable: |
multiselect |
Type : boolean
|
Default value : false
|
On checking this property users can select multiple rows in table. |
name |
Type : string
|
Name of the datatable widget. |
navigation |
Type : string
|
Default value : 'Basic'
|
Select the pagination type for the widget. Allowed Values:
|
navigationalign |
Type : string
|
Default value : 'left'
|
This property specifies how the paginator should be aligned horizontally. |
nodatamessage |
Type : string
|
Default value : 'No data found.'
|
This message will be displayed when there is no data to display. Bindable: |
pagesize |
Type : number
|
This property sets the maximum number of rows to be displayed in the data table per page. |
radioselect |
Type : boolean
|
Default value : false
|
Show a radio column in data table widget. This enables the user to select single row. |
rowclass |
Type : string
|
The CSS class provided will be applied on the table row. |
rowngclass |
Type : string
|
The CSS class will be applied on the table row based upon the evaluation of given expression. |
searchlabel |
Type : string
|
Default value : 'Search'
|
The placeholder for the search box. |
show |
Type : boolean
|
Default value : true
|
This property will be used to show/hide the data table widget on the web page. Bindable: |
showheader |
Type : boolean
|
Default value : true
|
Show/hide header of the data table. |
showrecordcount |
Type : boolean
|
Default value : false
|
This property controls whether the total record count is displayed in the data paginator or not. |
showrowindex |
Type : boolean
|
Default value : false
|
Show row index column in the data table widget. Adds a serial number column for display. |
spacing |
Type : string
|
Default value : 'normal'
|
This property defines spacing inside table. Allowed Values:
|
subheading |
Type : string
|
This property defines the sub heading or title for the widget. Bindable: |
tabindex |
Type : number
|
Default value : 0
|
This property specifies the tab order of the data table Widget. |
title |
Type : string
|
Title of the data table. Bindable: |
updatemessage |
Type : string
|
Default value : 'Record updated successfully'
|
This message will be displayed, when data is updated by data table. Bindable: |