Skip to content

Commit 54f8d5e

Browse files
committed
Dev environment - Updated VueUiSparkbar testing arena
1 parent 2c1d63d commit 54f8d5e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

TestingArena/ArenaVueUiSparkbar.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ const dataset = ref([
3131
},
3232
]);
3333
34+
function addDatapoint() {
35+
dataset.value.push({
36+
name: 'additional',
37+
value: Math.random() * 100,
38+
rounding: 0,
39+
target: 100
40+
})
41+
}
42+
3443
const model = ref([
3544
{ key: 'style.backgroundColor', def: '#FFFFFF', type: 'color'},
3645
{ key: 'style.fontFamily', def: 'inherit', type: 'text'},
@@ -102,6 +111,8 @@ const showTitleSlot = ref(false);
102111
<input type="checkbox" v-model="showTitleSlot" id="toggle-title-slot"/>
103112
<label for="toggle-title-slot">Toggle title slot</label>
104113
</div>
114+
115+
<button @click="addDatapoint">ADD DATAPOINT</button>
105116
<Box comp="VueUiSparkbar" :dataset="dataset">
106117
<template #title>VueUiSparkbar</template>
107118

0 commit comments

Comments
 (0)