Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/marco3211/jquery-multitabs

A jQuery plugin for nested tabs.
https://github.com/marco3211/jquery-multitabs

javascript jquery jquery-plugin

Last synced: 2 months ago
JSON representation

A jQuery plugin for nested tabs.

Awesome Lists containing this project

README

        

# jQuery-multitabs

The easiest way to get up and running with nested tabs.

## Installation

cdn:

```html

```

npm:

`npm i jquery-multitabs`

## Usage

```html



Tab 1

Tab 2

Tab 3






Sub Tab 1

Sub Tab 2

Sub Tab 3

Sub Tab 4



Sub Tab Content 1

Sub Tab Content 2

Sub Tab Content 3




Sub Tab Level 3 - 1

Sub Tab Level 3 - 2



Sub Tab Content Level 3 - 1

Sub Tab Content Level 3 - 2







Tab Content 2

Tab Content 3


```

You can nest unlimited tabs, here are several [examples](https://jsfiddle.net/marco321/87e3Lg53/).

To get up and running with the plugin, all you have to do is:

```javascript
$(function() {
$('.tab1').multitabs();
});
```
## Roadmap

- ~~More flexibility to add nested tabs (right now it only supports 1 extra level of nested tabs)~~.
- An API to add, remove a tab.
- ... More to come

## Changelog

### 1.1.0

- Removed `data-child` attribute dependency, allowing unlimited nested tabs.

This project is licensed under [MIT](https://github.com/marco3211/jquery-multitabs/blob/master/LICENSE).