GithubHelp home page GithubHelp logo

plustabs's Introduction

plusTabs

plugin to interact with jQuery UI tabs when there are too many tabs.

Plugin only renders "see more" tab/behavior when there are enough tabs to break to a second line - otherwise, tabs render normally.

plusTabs

Demo:

http://jsfiddle.net/jasonday/fdhaS/embedded/result/

Usage:

$("#tabs").plusTabs({
    className: "plusTabs",    // allows for css scoping, default to .plusTabs
    seeMore: true,            // the seeMore functionality - set to false to manually trigger later
    seeMoreText: "More",      // configure "see more" copy
    showCount: true,          // show total count of tabs
    expandIcon: "▼ ",   // default is caret - can use other html elements. If using image, put image width inline
    dropWidth: "66%",         // width of dropdown list
    sizeTweak: 0              // # of pixels to subtract from active tab to adjust placement of "see more"
});

TODO:

  • default selected tab option
  • remove dropwidth option (leave width to css styling)
  • add option - only move tabs to dropdown if they break to a second line ( versus current state, where all tabs move to dropdown if any tabs break to second line )
  • move drop placement out of plugin and into css (originally in code due to my own needs)
  • include cursor tabbing behavior for drop
  • Others? Unicorns?

License

Dual licensed under the MIT and GPL licenses:

http://www.opensource.org/licenses/mit-license.php

http://www.gnu.org/licenses/gpl.html

(c) Jason Day 2012

plustabs's People

Contributors

jasonday avatar

Watchers

 avatar  avatar

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.