Thanks, I have redo my code, and now it's ok.
i don't know why with all javascript in "source" folder .... I have the error, with only one "js" no problem.
All fields labelled (Required) must be completed before the form is submitted.
You are not logged in. Please login or register.
Mifjs forum — Mif.Tree, Mif.Menu » Help » MifTree and MifMenu integration » Post new reply
All fields labelled (Required) must be completed before the form is submitted.
Thanks, I have redo my code, and now it's ok.
i don't know why with all javascript in "source" folder .... I have the error, with only one "js" no problem.
Hello, I have a problem with the integration
...
My problem is when I do a rigth-click nearby the label/name of the tree, the menu is visible, if I click on the label/name, nothing to doThe code is ok with a old version of tree+menu, but with the last version, I have this problem.
works for me http://mifjs.net/misc/tree_menu/
Hello, I have a problem with the integration
I have this definition of a menu :
var testMenu = new Mif.Menu().load([
{
name: 'open',
action: function()
{
var current = this.treeItem;
if(!current) return;
alert('open : ' + current.id);
}
},
{
name: 'remove',
disabled: true
},
{
name: 'exit',
id: 'exit'
}
]);With this event on the tree (otree) :
otree.container.addEvent("contextmenu", function(event)
{
var node = otree.mouse.node;
if(!node) return;
testMenu.treeItem = node;
testMenu.show(event);
return false;
});My problem is when I do a rigth-click nearby the label/name of the tree, the menu is visible, if I click on the label/name, nothing to do
The code is ok with a old version of tree+menu, but with the last version, I have this problem.
To add/delete nodes with Mif.Menu only do the following:
var testMenu=new Mif.Menu({
list: {
items: [
{
name: 'Add node here',
onAction: function() {
var current = this.menu.treeItem;
if(!current) return;
tree.add({
property: {
name: "testnode"
}
}, current, 'inside');
}
},
{
name: 'Drop this node',
onAction: function() {
var current = this.menu.treeItem;
if (!current) return;
current.remove();
}
}
]
}
});
tree.container.addEvent('contextmenu', function(event){
var node=tree.mouse.node;
if(!node) return;
testMenu.show(event);
testMenu.treeItem=tree.mouse.node;
return false;
});Mif.Menu under development. If you use old(because new not exist yet) menu version all old code will work, because nothing changed :-)
Hi moro,
I've read that Mif.Menu is going to be rewritten, is that already done ? Or is the way of integrating MifTree and MifMenu you provided in 2008 still valid ?
Thanks in advance,
Jan
this demo 1.2.0
good
It works ... nice !
Thank you
i'm install ff3.0.4 pc, works for me.
alt+left click - temporal fix for opera, because it's don't support contextmenu event
i don't know how contextmenu event should work on mac os
On you must do CTRL + Left click to fire contextmenu event ...
I've just discovered it !...
On windows it works with right button
Do this demo use mootools 1.2.1 ?
I'm running Apple Mac OS X 10.5.5 with latest Firefox ...
I can't open context menu ... neither right or left click doens't works ...
all components? u include Mif.Container?
u download this demo archive, it's work?
I'm running Mootools 1.2.1
I've download Mif.Menu from your builder
Mifjs forum — Mif.Tree, Mif.Menu » Help » MifTree and MifMenu integration » Post new reply
Powered by PunBB