Merge pull request #5950 from karpov159/feature-prop-showheaders
Feat(DataTable): added showHeaders prop to datatablepull/6465/head
commit
00186c9798
|
@ -238,6 +238,10 @@ export default {
|
|||
type: String,
|
||||
default: '960px'
|
||||
},
|
||||
showHeaders: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
showGridlines: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
|
|
|
@ -1164,6 +1164,11 @@ export interface DataTableProps {
|
|||
* @defaultValue 960px
|
||||
*/
|
||||
breakpoint?: string | undefined;
|
||||
/**
|
||||
* Whether to display table headers
|
||||
* @defaultValue true
|
||||
*/
|
||||
showHeaders?: boolean | undefined;
|
||||
/**
|
||||
* Whether to show grid lines between cells.
|
||||
* @defaultValue false
|
||||
|
|
|
@ -70,6 +70,7 @@
|
|||
<template #content="slotProps">
|
||||
<table ref="table" role="table" :class="[cx('table'), tableClass]" :style="[tableStyle, slotProps.spacerStyle]" v-bind="{ ...tableProps, ...ptm('table') }">
|
||||
<DTTableHeader
|
||||
v-if="showHeaders"
|
||||
:columnGroup="headerColumnGroup"
|
||||
:columns="slotProps.columns"
|
||||
:rowGroupMode="rowGroupMode"
|
||||
|
|
Loading…
Reference in New Issue