Add support for 12 and 24 hour time formats (and add radio buttons) #33
2 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="radio-buttons-container" ref="radioButtonsContainer">
|
||||
<div v-for="index in incidies" :key="index" class="radio-button" @click="onClick(index)">
|
||||
<div v-for="index in indices" :key="index" class="radio-button" @click="onClick(index)">
|
||||
<span class="radio-button-radio"></span>
|
||||
<span class="radio-button-text">{{ textStrings[index] }}</span>
|
||||
</div>
|
||||
|
@ -19,7 +19,7 @@ const props = defineProps<{
|
|||
}>();
|
||||
|
||||
// makes an array from 0 to buttonCount - 1
|
||||
const incidies = Array.from({ length: props.buttonCount }, (_, i) => i)
|
||||
const indices = Array.from({ length: props.buttonCount }, (_, i) => i)
|
||||
twig marked this conversation as resolved
Outdated
|
||||
|
||||
// select default selected button
|
||||
onMounted(async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue
indices
*https://c.tenor.com/7pXIzb8f2rUAAAAd/tenor.gif