GithubHelp home page GithubHelp logo

svichas / tabed Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 48 KB

A javascript library for creating html tabs

Home Page: https://svichas.github.io/tabed/

License: MIT License

CSS 11.30% JavaScript 88.70%
html javascript html-tabs javascript-library

tabed's Introduction

Tabed

npm

tabed is a small, super fast and easy to use JavaScript Library to create HTML tabs.

Installation

<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/tabed.min.css">
<script src="https://unpkg.com/[email protected]/dist/tabed.min.js"></script>

or

npm install tabed

Browsers support

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
iOS Safari
iOS Safari
Samsung
Samsung
Opera
Opera
Opera Mini
Opera Mini
IE10, IE11, Edge last 3 versions last 3 versions last 3 versions last 2 versions last 2 versions last 2 versions last 2 versions

Example

<div class="tabed">
  <div class="tab" data-title='tab placeholder 1'>
    this is a tab 1
  </div>
  <div class="tab" data-title='tab placeholder 2'>
    this is a tab 2
  </div>
</div>
<script>
  new Tabed(".tabed", {
    // options...
  });
</script>

Options

theme

Option to set theme

new Tabed(".tabed", {
theme: "theme_name"
});

tabOpen

Option to set tab that will be open on start

new Tabed(".tabed", {
tabOpen: 2
});

tabed's People

Contributors

svichas avatar

Stargazers

 avatar

Watchers

 avatar  avatar

tabed's Issues

Release 1.0.0 features

  1. Rename project to tabed
  2. Add settings parameters to main function
  3. Add theme support
  4. Create contributing.md
  5. Create a gh-pages documentation site
  6. Add cdn option to install
  7. Rewrite readme.md

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.