diff --git a/dev/grouped-table.vue b/dev/grouped-table.vue index e8b1ca15..f32f8934 100644 --- a/dev/grouped-table.vue +++ b/dev/grouped-table.vue @@ -6,7 +6,10 @@ :columns="columns" :rows="rows" :line-numbers="true" - :select-options="{enabled: true}" + :select-options="{ + enabled: true, + selectAllByGroup: true + }" @on-select-all="onSelectAll" @on-search="onSelectAll" @on-row-mouseenter="onMouseover" diff --git a/src/components/Table.vue b/src/components/Table.vue index e37051fb..291ed84a 100644 --- a/src/components/Table.vue +++ b/src/components/Table.vue @@ -155,12 +155,15 @@ :columns="columns" :line-numbers="lineNumbers" :selectable="selectable" + :select-all-by-group="selectAllByGroup" :collapsable="groupOptions.collapsable" :collect-formatted="collectFormatted" :formatted-row="formattedRow" :class="getRowStyleClass(headerRow)" :get-classes="getClasses" :full-colspan="fullColspan" + :groupIndex="index" + @on-select-group-change="toggleSelectGroup($event, headerRow)" >