@@ -96,6 +96,7 @@ columns and add the following props to the `<BTable>` component:
9696 :fields="fields"
9797 />
9898</template>
99+
99100<script setup>
100101import { ref } from 'vue';
101102
@@ -124,9 +125,7 @@ const fields = ref([
124125
125126To add an expandable row in the table, add a column for the expand button in the
126127fields 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.
130129
131130Include the
132131[ 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.
175174 </template>
176175 </BTable>
177176</template>
177+
178178<script setup>
179179import { ref } from 'vue';
180180import IconChevron from '@carbon/icons-vue/es/chevron--down/20';
@@ -253,6 +253,7 @@ if there are no search matches.
253253 />
254254 </BContainer>
255255</template>
256+
256257<script setup>
257258import { ref, computed } from 'vue';
258259import Search from '@/components/Global/Search';
@@ -312,6 +313,7 @@ component will emit a `@click-table-action` with the event value.
312313 </template>
313314 </BTable>
314315</template>
316+
315317<script>
316318import { ref } from 'vue';
317319import IconDelete from '@carbon/icons-vue/es/trash-can/20';
@@ -390,6 +392,7 @@ from the useTableFilterComposable to show the filtered table data.
390392 />
391393 </b-container>
392394</template>
395+
393396<script setup>
394397import { ref, computed } from 'vue';
395398import TableFilter from '@/components/Global/TableFilter.vue';
@@ -491,6 +494,7 @@ To add table batch actions:
491494 </BTable>
492495 </b-container>
493496</template>
497+
494498<script>
495499import { ref } from 'vue';
496500import TableToolbar from '@/components/Global/TableToolbar.vue';
@@ -602,6 +606,7 @@ To add table pagination:
602606 </BRow>
603607 </BContainer>
604608</template>
609+
605610<script>
606611import { ref } from 'vue';
607612import usePaginationComposable from '@/components/Composables/usePaginationComposable';
0 commit comments