Giter Club home page Giter Club logo

tabbedcontent's People

Contributors

elboletaire avatar tpaksu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tabbedcontent's Issues

Disable hash on first start / Multiple Tabbed Content Issue

Is it possible to disabled the hash if i open the page for the first time?

Problem is:
When i have multiple tabbed contents, always the first tablink hash of the last tab container is added to the url ...
Same problem occurs in the multiple tabbed contents demo

This problem can be fixed by not adding the hash to the url if theres no hash present.

disable history

Is there a way to disable HTML5 history API? What speaks against it?

Improve scope control

The links option allows us to set a different set of links for our tabbedcontent, but it does not search for links inside the main selector. This means that if we have multiple tabbedcontent with the same layout for the links, the plugin will get a bit crazy.

Instead of doing...

if (!(options.links instanceof $)) {
    options.links = $(options.links);
}

I should do something like...

if (!(options.links instanceof $)) {
    options.links = tabcontent.find(options.links);
}

next prev not working

hi

when i try to use next and previous next jumps to first tab and previous to last

please see this link i manage to reduce the code
the problem if if there are other li with the class active it doesn't work even when you specify what links target the tabs

http://codepen.io/anon/pen/MwKeqw

api.switch doesn't change hash

Hi,

I guess api.switch on init event doesn't change the addressbar hash, which may be a problem on page refreshes. Does anybody experienced this on init event? or is it just me?

Browser scrolling

I have a problem with browser scrolling from tab button to button target.

When I click on link Chrome browser scrolls to anchored ID, while in Firefox scrolling is disabled.

Is there any way to disable browser scrolling in Chrome?

EDIT:
I already tried to add 'pointer-events: none' to the '.active' tab, but it doesn't work

window Positioning post client of tab

When user click on the tabs ,page content get moved up and it get position to the hash tag place, due to which tabs get moved up and get hidden if we have have more content in each tabs content section and user view port will be focus on content. This behavior is only in chrome.

How can we use position the document such that tabs as visible. we tried using

document.getElementById('productTab').scrollIntoView();

but this does not work as click event of tabs overrides this setting.

add lastTab / firstTab booleans?

Once again, it's me.
One could write a sister function that counts divs, and uses that number to determine whether getCurrentTab is the first or the last or not, but I thought it might be useful to build it into the plugin, since you are counting them anyhow. The api then could use mytabs.last() mytabs.first() as booleans so that one could use a function like

function tabNavToggler() {
    var firstTab = mytabs.first()
    var lastTab = mytabs.last()
    if(firstTab) {
        $('#previousTab').fadeTo(0, 0);
        $('#nextTab').fadeTo(0, 100);
    } else if(lastTab) {
        $('#previousTab').fadeTo(0, 100);
        $('#nextTab').fadeTo(0, 0);
    } else {
        $('#previousTab').fadeTo(0, 100);
        $('#nextTab').fadeTo(0, 100);
    }
}

Is there anyway to get current tab index?

I'm doing this sort of thing for next and previous buttons, resetting tabs to zero so that it works, is there a way to get current tab index?

mytabs.switch(0); // note that first tab begins at 0
var targetTab = 0;
$('.nextTab').click(function(){
    mytabs.switch(targetTab+1);
    targetTab++
});
$('.prevTab').click(function(){
    mytabs.switch(targetTab-1);
    targetTab--
});

Don't work with <base> tag

If you have a base tag in html, then switching a tab cuts off portion of url. Only base url + the Tab hash is shown in url.

Add to packagist (composer)

Some symfony users use composer to install assets. Then they use the "asset install" feature from symfony to move them to their proper place.

Add a composer.json file and register this package in packagist.

Any chance of adding a tab change callback?

Hello, it is me again with yet another feature request. Any chance of adding a callback to fire a function? Example, I have next and previous buttons using the new api, and I want to hide the disabled ones for the first and last slide. I can make it run the following for onclick of those buttons, but if one switches using the regular tabs, it does not work as the getcurrent reads the div at the moment where someone clicked it, and not the one they actually clicked to go to.

    var currentTab = mytabs.getCurrent();
    if(currentTab == 0) {
        $('#prev').fadeTo(0, 0);
        $('#next').fadeTo(0, 100);
    } else if(currentTab == 2) {
        $('#next').fadeTo(0, 0);
        $('#prev').fadeTo(0, 100);
    } else if(currentTab == 1) {
        $('#prev').fadeTo(0, 100);
        $('#next').fadeTo(0, 100);
    }

fade animation and .current class on content DIVs

Hello,
great tabs! i'm currently trying to use them for a project i`m working on and i have 2 questions:

Is there any way to change the current animation (slide from top left to bottom right) to a simple "fade" animation?

Also, if i enable "currentClass", only the tab buttons receive a ".current" class on click. Is there any way to add the .current class to the tab content DIVs items as well?

thank you & best regards!
andi


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

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.