@@ -96,6 +96,7 @@ columns and add the following props to the `<BTable>` component:
96
96
:fields="fields"
97
97
/>
98
98
</template>
99
+
99
100
<script setup>
100
101
import { ref } from 'vue';
101
102
@@ -124,9 +125,7 @@ const fields = ref([
124
125
125
126
To add an expandable row in the table, add a column for the expand button in the
126
127
fields array. Include the tdClass ` table-row-expand ` to ensure icon rotation is
127
- handled. Use the built in [ cell
128
- slot] ( https://bootstrap-vue.org/docs/components/table#comp-ref-BTable-slots ) to
129
- target the expand button column and add a button with the chevron icon.
128
+ handled.
130
129
131
130
Include the
132
131
[ useTableRowExpandComposable] ( https://github.com/ibm-openbmc/webui-vue/blob/1060-vue3/src/components/Composables/useTableRowExpandComposable.js ) .
@@ -175,6 +174,7 @@ format the expanded row content. The slot has access to the row `item` property.
175
174
</template>
176
175
</BTable>
177
176
</template>
177
+
178
178
<script setup>
179
179
import { ref } from 'vue';
180
180
import IconChevron from '@carbon/icons-vue/es/chevron--down/20';
@@ -253,6 +253,7 @@ if there are no search matches.
253
253
/>
254
254
</BContainer>
255
255
</template>
256
+
256
257
<script setup>
257
258
import { ref, computed } from 'vue';
258
259
import Search from '@/components/Global/Search';
@@ -312,6 +313,7 @@ component will emit a `@click-table-action` with the event value.
312
313
</template>
313
314
</BTable>
314
315
</template>
316
+
315
317
<script>
316
318
import { ref } from 'vue';
317
319
import IconDelete from '@carbon/icons-vue/es/trash-can/20';
@@ -390,6 +392,7 @@ from the useTableFilterComposable to show the filtered table data.
390
392
/>
391
393
</b-container>
392
394
</template>
395
+
393
396
<script setup>
394
397
import { ref, computed } from 'vue';
395
398
import TableFilter from '@/components/Global/TableFilter.vue';
@@ -491,6 +494,7 @@ To add table batch actions:
491
494
</BTable>
492
495
</b-container>
493
496
</template>
497
+
494
498
<script>
495
499
import { ref } from 'vue';
496
500
import TableToolbar from '@/components/Global/TableToolbar.vue';
@@ -602,6 +606,7 @@ To add table pagination:
602
606
</BRow>
603
607
</BContainer>
604
608
</template>
609
+
605
610
<script>
606
611
import { ref } from 'vue';
607
612
import usePaginationComposable from '@/components/Composables/usePaginationComposable';
0 commit comments