Skip to content

Instantly share code, notes, and snippets.

View gegeke's full-sized avatar
🎯
Focusing

Gergely Muka gegeke

🎯
Focusing
  • Tricentis
  • Vienna
View GitHub Profile
@gegeke
gegeke / VStepperIcon.vue
Created October 14, 2021 12:58
VStepperIcon
<script>
import { VStepper } from 'vuetify/lib';
// stepper step types by component name, so the VStepperIcon
// is able to display different types of stepper steps
const STEPPER_STEP_COMPONENTS = ['v-stepper-step', 'v-stepper-step-icon']
// comparing name to possible stepper step component names
const isStepperStepComponent = (componentList) => {
return (name) => componentList.includes(name)
}
// function to check if a string is in the allowed componentList
@gegeke
gegeke / vuetify.js
Created October 14, 2021 13:02
VStepperIcon plugins/vuetify.js
import Vue from 'vue';
import Vuetify from 'vuetify/lib/framework';
import VStepperIcon from '@/components/VStepperIcon.vue'
import VStepperStepIcon from '@/components/VStepperStepIcon.vue'
Vue.use(Vuetify, {
components: {
VStepperIcon,
VStepperStepIcon,
},