Vue Tabs Components vue-nav-tabs

Vue Tabs Components vue-nav-tabs

In this Post We Will Explain About is Vue Tabs Components vue-nav-tabs With Example and Demo.Welcome on Pakainfo.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to Vuejs tab navigation Example

In this post we will show you Best way to implement Vuejs material tabs, hear for Vuejs bootstrap tabs and Vuejs tab routing with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.

Read Also:  Vue js Multiple Tag Input with Dynamic Autocomplete

Vue.js Tabs tutorial using Components

Simplified, very customizable bootstrap based tabs using Vue-tabs is a tab simple component which simplifies more the usage of vue tabs and their some customizationvue-nav-tabs

npm install vue-nav-tabs

Vue-tabsTabs is an some extension of navs, to make tabbable panes of local data content, even via simple dropdown menus.

Include external Js libs

bootstrap.min.css
vue.js
bootstrap.min.js

index.html File

     <h3>{{tab.name}}</h3>
		<h4>Pakainfo.com</h4>


<div id="live_tab_examples">
    <ul class="nav nav-live_tabs" role="tablist">
        <li role="presentation">
            <a href="#" role="tab">{{ tab.name }}</a>

        </li>
        <li>
            <button type="button" class="btn btn-success">New tab</button>
        </li>
    </ul>
    <div class="tab-content">
        <div role="tabpanel" class="tab-pane">
            
        </div>
    </div>
<pre>{{ $data | json }}</pre>

</div>

Javacript files

Vue.component('query-browser-tab', {
    template: '#queryBrowserTab',
    data: function () {
        return {
            databaseOptions: [],
        };
    },
    props: ['tab'],

    methods: {},

});

new Vue({
    el: '#live_tab_examples',
    data: {
        live_tabs: [{
            name: "tab1",
            id : 0,
            tab_active: true
        }],
        current_tab: {}
    },
    ready: function () {
		this.tab_set_act(this.live_tabs[0]);
    },

    methods: {
        tab_set_act: function (tab) {
            var self = this;
            tab.tab_active = true;
            this.current_tab = tab;
            /*Pakainfo.com this.current_tab.tab_active = true;
            console.log("current_tab name=" + this.current_tab.name);*/
            this.live_tabs.forEach(function (tab) {
                console.log("TAB => " + tab);
                console.log("current_tab id => " + self.current_tab.id);
                console.log("tab id=" + tab.id);

                if (tab.id !== self.current_tab.id) { tab.tab_active = false;}
            });
        },
        Tab_new: function () {
            add_newtab = {
                name: "tab" + (this.live_tabs.length + 1),
                id: this.live_tabs.length,
                tab_active: true
            };
            this.live_tabs.push(add_newtab);
            this.tab_set_act(add_newtab);
            /*Pakainfo.com this.current_tab = add_newtab;

            console.log("###Pakainfo.com newtab name=" + add_newtab.name);*/

        },

        closeTab: function () {
            console.log("###Pakainfo.com CLOSE!");
        }
    }
});

Example

Read Also:  PHP Generate Random shuffles Strings Example

I hope you have Got What is Vuejs material tabs example And how it works.I would Like to have FeadBack From My Blog(Pakainfo.com) readers.Your Valuable FeadBack,Any Question,or any Comments abaout This Article(Pakainfo.com) Are Most Always Welcome.


Related FAQ

Here are some more FAQ related to this Article:

  1. Read Also:  VueJS onload Function Call Example with Demo
  2. Read Also:  How to Send Twitter Automatically Tweets with PHP
  3. Read Also:  Laravel 6 Allow CORS All requests Middleware Tutorial
  4. Read Also:  Vue JS onclick get data attribute value Onchange
  5. Read Also:  Session Management in CodeIgniter with PHP
  6. Read Also:  Angular 6 - User Registration and Login Example & Tutorial
  7. Read Also:  Free Proxy list online - FREE and FRESH PROXY SERVERS LIST Socks and HTTP proxy
  8. Read Also:  Insert update delete Using Laravel 5.2 Ajax CRUD laravel without refresh page
  9. Read Also:  Vue js Multiple Tag Input with Dynamic Autocomplete
  10. Read Also:  Angular 6 - User Registration and Login Example & Tutorial
CLOSEX