Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript AnythingSlider: question on navigationFormatter

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #44559

    I read about navigationFormatter on AnythingSlider wiki.. but I can’t understand what this function does (actually I found it in an example for an old version of AnythingSlider). Can I safely remove it?

    function formatText(index, panel) {
    return index + “”;
    }

    $(function () {

    $(‘#slider’).anythingSlider({

    navigationFormatter: formatText
    });

    });

    #134106
    Mottie
    Member

    Hi, what you shared is basically the default setting of the navigationFormatter. You don’t need to add it unless you want something else showing in the tabs.

    #134271

    Thanks! :)

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.