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

Added itemToMove option allowing 'menu' || 'panel' || 'both' #175

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AaronLayton
Copy link

Reference issue #140

Sorry it took so long to get this pull request in but here is the modifications I made to allow the user to drag out the menu.

Usage

var slideout = new Slideout({
  'panel': doc.getElementById('panel'),
  'menu': doc.getElementById('menu'),
  'itemToMove': "menu" // menu || panel || both
});

The code was very rushed in as I need it for a live project with a deadline so I am sure this can be optimized a lot more. For example I essentially had to re-initialise all the values in _recalculateAll() - not great but it got the job done for what I needed.

@AaronLayton
Copy link
Author

Any news on this PR?

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

Successfully merging this pull request may close these issues.

1 participant