Skip to content

Commit

Permalink
Basic layout
Browse files Browse the repository at this point in the history
  • Loading branch information
surchs committed Oct 16, 2023
1 parent 17a7367 commit bd91e5b
Showing 1 changed file with 38 additions and 32 deletions.
70 changes: 38 additions & 32 deletions components/category-toolgroup.vue
Original file line number Diff line number Diff line change
@@ -1,37 +1,44 @@
<template>
<div>
<b-table
v-if="selectedTools.length > 0"
data-cy="assessment-tool-table"
outlined
selectable
head-variant="dark"
:items="selectedTools"
select-mode="single"
selected-variant=""
@row-selected="highlightRow"
:tbody-tr-class="styleTableRow"
thead-class="hidden" />

<v-select
data-cy="toolgroup-select"
label="Select a tool"
:options="toolGroups"
outlined
@input="selectTool"
:selectable="(option) => !selectedTools.some(el => el.tool.includes(option))" />

<b-table
data-cy="assessment-column-table"
outlined
head-variant="dark"
:items="tableRows"
selected-variant=""
thead-class="hidden"
@row-clicked="mapColumnToTool"
:tbody-tr-class="styleRow" />

<b-row>
<b-col cols="6">
<v-select
data-cy="toolgroup-select"
label="Select a tool"
:options="toolGroups"
outlined
@input="selectTool"
:selectable="(option) => !selectedTools.some(el => el.tool.includes(option))" />
</b-col>
</b-row>
<b-row>
<b-col>
<b-table
v-if="selectedTools.length > 0"
data-cy="assessment-tool-table"
outlined
selectable
head-variant="dark"
:items="selectedTools"
select-mode="single"
selected-variant=""
@row-selected="highlightRow"
:tbody-tr-class="styleTableRow"
thead-class="hidden" />

</b-col>
<b-col>
<b-table
data-cy="assessment-column-table"
outlined
head-variant="dark"
:items="tableRows"
selected-variant=""
thead-class="hidden"
@row-clicked="mapColumnToTool"
:tbody-tr-class="styleRow" />
</b-col>
</b-row>
</div>
</template>

Expand Down Expand Up @@ -75,7 +82,6 @@
if ( 0 !== rows.length ) {
this.selectedTool = rows[0].tool;
}
},
styleTableRow(p_row) {
Expand Down

0 comments on commit bd91e5b

Please sign in to comment.