{"action":"created","issue":{"url":"https://api.github.com/repos/FrDH/jQuery.mmenu/issues/592","repository_url":"https://api.github.com/repos/FrDH/jQuery.mmenu","labels_url":"https://api.github.com/repos/FrDH/jQuery.mmenu/issues/592/labels{/name}","comments_url":"https://api.github.com/repos/FrDH/jQuery.mmenu/issues/592/comments","events_url":"https://api.github.com/repos/FrDH/jQuery.mmenu/issues/592/events","html_url":"https://github.com/FrDH/jQuery.mmenu/issues/592","id":161497051,"number":592,"title":"Change position dinamically","user":{"login":"codigitus","id":17498462,"avatar_url":"https://avatars.githubusercontent.com/u/17498462?v=3","gravatar_id":"","url":"https://api.github.com/users/codigitus","html_url":"https://github.com/codigitus","followers_url":"https://api.github.com/users/codigitus/followers","following_url":"https://api.github.com/users/codigitus/following{/other_user}","gists_url":"https://api.github.com/users/codigitus/gists{/gist_id}","starred_url":"https://api.github.com/users/codigitus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codigitus/subscriptions","organizations_url":"https://api.github.com/users/codigitus/orgs","repos_url":"https://api.github.com/users/codigitus/repos","events_url":"https://api.github.com/users/codigitus/events{/privacy}","received_events_url":"https://api.github.com/users/codigitus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-21T17:37:27Z","updated_at":"2016-06-22T08:16:55Z","closed_at":null,"body":"Is there any way to change the menu position once initialized?"},"comment":{"url":"https://api.github.com/repos/FrDH/jQuery.mmenu/issues/comments/227674375","html_url":"https://github.com/FrDH/jQuery.mmenu/issues/592#issuecomment-227674375","issue_url":"https://api.github.com/repos/FrDH/jQuery.mmenu/issues/592","id":227674375,"user":{"login":"FrDH","id":1387163,"avatar_url":"https://avatars.githubusercontent.com/u/1387163?v=3","gravatar_id":"","url":"https://api.github.com/users/FrDH","html_url":"https://github.com/FrDH","followers_url":"https://api.github.com/users/FrDH/followers","following_url":"https://api.github.com/users/FrDH/following{/other_user}","gists_url":"https://api.github.com/users/FrDH/gists{/gist_id}","starred_url":"https://api.github.com/users/FrDH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrDH/subscriptions","organizations_url":"https://api.github.com/users/FrDH/orgs","repos_url":"https://api.github.com/users/FrDH/repos","events_url":"https://api.github.com/users/FrDH/events{/privacy}","received_events_url":"https://api.github.com/users/FrDH/received_events","type":"User","site_admin":false},"created_at":"2016-06-22T08:16:55Z","updated_at":"2016-06-22T08:16:55Z","body":"I guess you could use the API to update the options:\r\n````js\r\nvar $menu = $(\"#menu\").mmenu();\r\nvar API = $menu.data( \"mmenu\" );\r\n\r\nvar options = API.getInstance().opts;\r\noptions.offCanvas.position = \"right\";\r\noptions.offCanvas.zposition = \"front\";\r\n````\r\nUnfortunately, that won't update the classnames allready added to the menu, so you'll have to do that manually:\r\n````js\r\n$menu.removeClass( \"mm-left\" ).addClass( \"mm-right\" );\r\n$menu.removeClass( \"mm-back\" ).addClass( \"mm-front\" );\r\n````"}}
{"actor":{"display_login":"FrDH"}}