Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usability - Accessibility #19

Closed
fritzweisshart opened this issue Apr 10, 2013 · 2 comments
Closed

Usability - Accessibility #19

fritzweisshart opened this issue Apr 10, 2013 · 2 comments

Comments

@fritzweisshart
Copy link

For accessibility reasons I would like to set the focus to the menu, once the animation is complete.
Could anybody help with the jQuery code please

@artberri
Copy link
Owner

artberri commented Nov 8, 2013

Now, with version 1.2.1, you can do it with the onOpen callback function:

$('#your-menu-button').sidr({
    // Your other options
    onOpen: function() {
        $('#element-to-focus').focus();
    }
});

@artberri artberri closed this as completed Nov 8, 2013
@CalleTuvesson
Copy link

This does not solve the issue at hand. We want to run jQuery code when the animation completes. Not when it is triggered. How do we make use of the jQuery.sidr() controller for this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants