0

I am using mdc-tab-scroller in my vue.js application. I want to have the scroll behaviour as in here under the section of "scrolling tabs". Have tried different approaches but don't know how to get it working. This is my very first experience with vue.js and material design components so don't really know if I am on right path of implementation.

    <div class="mdc-tab-scroller">
        <div class="mdc-tab-scroller__scroll-area">
            <div class="mdc-tab-scroller__scroll-content">
                <mdc-tab-bar>
                    <mdc-tab :to="{ path: getTab1() }" >Tab1</mdc-tab>
                    <mdc-tab :to="{ path: getTab2() }" >Tab2</mdc-tab>
                    <mdc-tab :to="{ path: getTab3() }" >Tab3</mdc-tab>
                    <mdc-tab :to="{ path: getTab4() }" >Tab4</mdc-tab>
                    <mdc-tab :to="{ path: getTab5() }" >Tab5</mdc-tab>
                    <mdc-tab :to="{ path: getTab6() }" >Tab6</mdc-tab>
                </mdc-tab-bar> 
            </div>
        </div>
    </div>  
benvc
  • 14,448
  • 4
  • 33
  • 54
Learning Curve
  • 1,449
  • 7
  • 30
  • 60

0 Answers0