modulekit-tabs

0.2.2 • Public • Published

modulekit-tabs

Simple tabs for web applications (JS only and PHP+JS)

Installation

via npm, using browserify

npm add modulekit-tabs

Add -g browserify-css to your build command, e.g. browserify -g browserify-css src/index.js -o app.js.

Usage

var tabs = require('modulekit-tabs')

var pageTabs = new tabs.Tabs(document.getElementById('page'))
var tab1 = new tabs.Tab({ id: 'tab1' })
pageTabs.add(tab1)

tab1.header.innerHTML = 'Header'
tab1.content.innerHTML = 'Content of tab1'

Readme

Keywords

none

Package Sidebar

Install

npm i modulekit-tabs

Weekly Downloads

1

Version

0.2.2

License

GPL-3.0

Unpacked Size

1.07 MB

Total Files

36

Last publish

Collaborators

  • plepe