Skip to content

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

@wingwdiscuss

Description

@wingwdiscuss

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');
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions