diff --git a/src/views/datatable/DataTableDoc.vue b/src/views/datatable/DataTableDoc.vue index fe6f8d29a..4878ee17d 100755 --- a/src/views/datatable/DataTableDoc.vue +++ b/src/views/datatable/DataTableDoc.vue @@ -377,6 +377,72 @@ export default { +
Column Slots
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameParameters
headercolumn: Column node
bodydata: Row data
+ column: Column node
+ index: Row index
+ frozenRow: Is row frozen
footercolumn: Column node
editordata: Row data
+ column: Column node
+ index: Row index
+ frozenRow: Is row frozen
filterfield: Column field
+ filterModel: {value,matchMode} Filter metadata
+ filterCallback: Callback function
filterheaderfield: Column field
+ filterModel: {value,matchMode} Filter metadata
+ filterCallback: Callback function
filterfooterfield: Column field
+ filterModel: {value,matchMode} Filter metadata
+ filterCallback: Callback function
filterclear/td> + field: Column field
+ filterModel: {value,matchMode} Filter metadata
+ filterCallback: Callback function
filterapplyfield: Column field
+ filterModel: {value,matchMode} Filter metadata
+ filterCallback: Callback function
+
+
Auto Layout

Default table-layout is fixed meaning the cell widths do not depend on their content. If you require cells to scale based on their contents set autoLayout property to true. Note that Scrollable and/or Resizable tables do not support auto layout due to technical limitations.

@@ -764,6 +830,29 @@ matchModes: [ ] +
Filter Slots
+

Filter menu overlay can be customized even further with various templates including filterheader, filterfooter, filterclear, filterapply. Example here changes the buttons and adds a footer.

+ +

+
+ +
Selection

DataTable provides single and multiple selection modes on click of a row. Selected rows are bound to the selection property and updated using the v-model directive. Alternatively column based selection can be done using radio buttons or checkboxes using selectionMode of a particular column. In addition row-select and row-unselect @@ -2415,6 +2504,51 @@ export default { +

Slots
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
NameParameters
header-
paginatorLeft-
paginatorRight-
footer-
groupheaderdata: Row data
+ index: Row index
groupfooterdata: Row data
+ index: Row index
expansiondata: Row data
+ index: Row index
+
+
Styling

Any property as style and class are passed to the main container element. Following are the additional properties to configure the component.