I am currently working on implementing a v-toolbar for a webpage that contains multiple sections. My goal is to have the toolbar title change dynamically based on which section is visible on the screen. I am struggling to find a solution for this using Vuetify version 1.0.5. Any help or guidance on how to achieve this would be greatly appreciated.
<template>
<div>
<v-toolbar dense fixed class="main-toolbar" scroll-off-screen>
<v-layout row wrap>
<v-flex xs12 md4 class="sub-main-page">
<v-toolbar-title><a class="toolbar-styling" href="javascript:document.getElementById('section1').scrollIntoView(true);">Section 1</a></v-toolbar-title>
</v-flex>
<v-flex xs12 md4 class="sub-main-page">
<v-toolbar-title><a class="toolbar-styling" href="javascript:document.getElementById('section2').scrollIntoView(true);">Section 2</a></v-toolbar-title>
</v-flex>
<v-flex xs12 md4 class="sub-main-page">
<v-toolbar-title><a class="toolbar-styling" href="javascript:document.getElementById('section3').scrollIntoView(true);">Section 3</a></v-toolbar-title>
</v-flex>
</v-layout>
</v-toolbar>
<div id="section1">
<Section1></Section1>
</div>
<div id="section1">
<Section2></Section2>
</div>
<div id="section1">
<Section3></Section3>
</div>
</div>
</template>
<script>
import Section1 from 'views/section1.vue';
import Section2 from 'views/section2.vue';
import Section3 from 'views/section3.vue';
export default {
components: {
Section1,
Section2,
Section3,
}
};
</script>