i need some ideias to custumize my Vue Boostrap table.
I have some data like:
const tasks = [
{
title: 'title 1',
wbs: '0',
description: '...'
},
{
title: 'title 2',
wbs: '1',
description: '...'
},
{
title: 'title 3',
wbs: '1.1',
description: '...'
},
{
title: 'title 4',
wbs: '1.1.1',
description: '...'
},
{
title: 'title 5',
wbs: '1.2',
description: '...'
}
]
my table:
<b-table
striped
hover
isRowHeader
:responsive="'md'"
:items="tasks"
:fields="fields"
:per-page="perPage"
:current-page="currentPage"
/>
end my tasks are computed from Store:
computed: { ...mapGetters({ tasks: "getTasks" }) }
I need o custumize the table based on WBS value. Set _rowVariant to 'info' for 0 and 1, to 'warnig' to 1.1 and 1.2, to 'danger' to others. And also add mergin left to title based on WBS size. Plz give some ideia to accomplish this. Ty in advance.