2.0.1 • Published 7 years ago

white-vue-tab-component v2.0.1

Weekly downloads
3
License
ISC
Repository
-
Last release
7 years ago

white-vue-tab-component

This module is intended to separate content into sections. Accessable via a single content area using a flat navigation structure that does not refresh the page when selected. Tabs are inspired by their use in file cabinets where they separate sections of files. Although there are no real differences with a normal horizontal bar, the shape of the tabs makes the menu less boring and more visually outstanding.

Notes

Run Module

  • Make sure you have nodeJs and NPM installes on your machine.
  • Run folowing commands
npm install
npm run build
npm run demo

Basic Usage

In you app js file

import Tabs from './tabs.controller.js';
import Tab from './tab.controller.js';

Vue.component('slp-tabs', Tabs);
Vue.component('slp-tab', Tab);

html template

<slp-tabs id="myid">
    <slp-tab title="myTabTitle1">
        content1
    </slp-tab>
    <slp-tab title="myTabTitle2">
        content2
    </slp-tab>
</slp-tabs>