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

how to reset the direction of menu to another type? #8

Open
wingwdiscuss opened this issue Mar 12, 2014 · 0 comments
Open

how to reset the direction of menu to another type? #8

wingwdiscuss opened this issue Mar 12, 2014 · 0 comments

Comments

@wingwdiscuss
Copy link

how to reset the direction of menu to another type?
at the beginning:
$("#circleR").circleMenu({
circle_radius : 85,
item_diameter : 40,
direction : 'left-half',
trigger : 'click',
open : function() {
console.log('menu opened');
},
close : function() {
console.log('menu closed');
},
init : function() {
console.log('menu initialized');
},
select : function(evt, index) {
console.log(evt, index);
}
}).on('circleMenu-open', function() {
console.log('menu opened 2');
});

after this, in some event I would like to change the direction to 'bottom-right' like this but it fail to change it:

$("#circleR").circleMenu({
circle_radius : 85,
item_diameter : 40,
direction : 'bottom-right',
trigger : 'click',
open : function() {
console.log('menu opened');
},
close : function() {
console.log('menu closed');
},
init : function() {
console.log('menu initialized');
},
select : function(evt, index) {
console.log(evt, index);
}
}).on('circleMenu-open', function() {
console.log('menu opened 2');
});

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

1 participant