Skip to content

turn off anythingslider navigation #543

@bmwboarder

Description

@bmwboarder

Hi,
I'd like to disable the anythingslider navigation controls until the user does some event (that I'll control with javascript). I can't seem to find a way that disables the switching of slides. I don't want to completely disable the whole slider as in this: #85

But I don't want the user to be able to change pages. Well at least until they finish certain tasks. So I would need a way to toggle on and off the controls.
I've got this going, but haven't had any success:

onInitialized: function(e, slider) {                    
    if(slider.currentPage==1){
        //disable controls until user clicks checkbox
        //slider.slideControls();
        //.slider.enableNavigation(false); 
    }

Any ideas? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions