<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Mifjs forum — Mif.Tree, Mif.Menu]]></title>
		<link>http://mifjs.net/forum/</link>
		<description><![CDATA[The most recent topics at Mifjs forum — Mif.Tree, Mif.Menu.]]></description>
		<lastBuildDate>Fri, 10 Sep 2010 15:23:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Mif.Menu.Item, add method  and submenu]]></title>
			<link>http://mifjs.net/forum/topic/224/new/posts/</link>
			<description><![CDATA[Hello,

I've tried to [b]add an item[/b] with own submenu using add method but seems that [b]add method[/b] doesn't handle submenu...

I need more or less the same thing as load method but with the posibility to  inject data anywhere : before, after, top, bottom on an item.


[code]
var newItem = new Mif.Menu.Item({'menu':this}, {'name' : 'sort by', 'submenu':  
                                [ {'options': 
                                     {'onAction': function(item) { 
                                        var selected = tree.selected;
                                        if(selected){
                                            selected.data.sort = item.property.name;
                                            selected.refreshChildren();
                                        }
                                     } 
                                      }
                                 }].concat(selected.property.sortMenu)
                             });

                             this.add(newItem, Mif.id('refresh'), 'after');
[/code]]]></description>
			<author><![CDATA[dummy@example.com (moro)]]></author>
			<pubDate>Fri, 10 Sep 2010 15:23:21 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/224/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Huge tree drawing ...]]></title>
			<link>http://mifjs.net/forum/topic/209/new/posts/</link>
			<description><![CDATA[Hello,

How can I optimize huge tree drawing ? I've got tree branches with more than 2000 nodes loaded using JSON.
I've cached the JSON string on server side but what can I do on client side ...  

During drawing no loading cursor neither icon appear on the branch. The computation take  a very long time ( >  10s ), browser becomes very slow and looks like doesn't answer.

Thank you]]></description>
			<author><![CDATA[dummy@example.com (moro)]]></author>
			<pubDate>Mon, 09 Aug 2010 04:32:51 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/209/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Toggle Tree Features]]></title>
			<link>http://mifjs.net/forum/topic/223/new/posts/</link>
			<description><![CDATA[Hey there
I've got a problem with the initialisation of advanced features like Sortable.
Is it a Must to initialize and activate these features on Tree initialisation?
There is a request for an application I am working on at the moment to toggle the Sortable function of the tree.
Per default sorting shold be off, users can click a button to turn sorting on and off again.
Is it possible to initiate sorting after the tree has been built?
Or - if not - is it possible to disable the initiated sorting functions to enable it later?

Regards, Michael]]></description>
			<author><![CDATA[dummy@example.com (moro)]]></author>
			<pubDate>Sun, 25 Jul 2010 12:46:07 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/223/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Can I show check boxes ONLY on leaf nodes?]]></title>
			<link>http://mifjs.net/forum/topic/219/new/posts/</link>
			<description><![CDATA[Hi,

I'm a newbee to Mif and to MooTools...  I am loving both :)

For my application I only want check boxes on the leaf nodes (the end of the tree branch).  
My tree is 4 levels deep (if that makes any difference) and the leaves are always on level 4.

Can the Mif.Tree do this and if so how?

Thanks]]></description>
			<author><![CDATA[dummy@example.com (moro)]]></author>
			<pubDate>Wed, 14 Jul 2010 20:06:37 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/219/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[delete tree]]></title>
			<link>http://mifjs.net/forum/topic/15/new/posts/</link>
			<description><![CDATA[Hi Moro,

How do you delete the content of a tree? (or subtree)

I have a Mif.Tree object which I populated using load(json...). But I would like to clear it to re-populate it with new data. If I call load twice, the new data is appended to the previous one.

Cheers,
Peter]]></description>
			<author><![CDATA[dummy@example.com (ordiman85)]]></author>
			<pubDate>Sat, 10 Jul 2010 16:55:37 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/15/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Tree: sort after drag]]></title>
			<link>http://mifjs.net/forum/topic/218/new/posts/</link>
			<description><![CDATA[Hello, first of all: the plugin is awesome, really like it alot.

My question: how to use sorting in combination with drag and drop.

tried something like this:
[code]
onComplete: function(){
    this.current.getParent().sort();
}
[/code]
Please help !
Thx]]></description>
			<author><![CDATA[dummy@example.com (mrgroovy)]]></author>
			<pubDate>Fri, 02 Jul 2010 11:20:00 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/218/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Mif.Tree() Never init's with element is null]]></title>
			<link>http://mifjs.net/forum/topic/217/new/posts/</link>
			<description><![CDATA[what am I missing?

even the simplest:
    sandbox.mooTree = new Mif.Tree({
        container: document.id('my-container-id'),
        forest: true,
        initialize: function(){
            this.initCheckbox('simple');
            new Mif.Tree.KeyNav(this);
        },
    });
errors out with element is null in Mif.Tree at:
...
this.wrapper = new Element('div').addClass('mif-tree-wrapper').injectInside(this.container);
...

I never even get a chance to load any json

container defined as:
<div id="my-container-id"></div>
and is definitely available before the Tree() call  - I've checked.]]></description>
			<author><![CDATA[dummy@example.com (Codename: Steeve Knight)]]></author>
			<pubDate>Sat, 19 Jun 2010 17:31:40 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/217/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[node ID and Selenium]]></title>
			<link>http://mifjs.net/forum/topic/216/new/posts/</link>
			<description><![CDATA[Hi guys

I am struggling to get Selenium to select the correct node since the "uid" ( found using FireBug) keeps changing after adding another node. <span uid="6" class="mif-tree-name">test node</span>

Is it possible to populate the "uid" based on the id from the SQL database ie <span uid="1" class="mif-tree-name">test node</span>

Regards]]></description>
			<author><![CDATA[dummy@example.com (moro)]]></author>
			<pubDate>Mon, 31 May 2010 14:43:31 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/216/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Get old parent in Mif.Tree.Drag]]></title>
			<link>http://mifjs.net/forum/topic/215/new/posts/</link>
			<description><![CDATA[Hi,
how is it possible to get the old parent in MifTree ? I know how to get the new parent (this.current.parentNode in onDrop()), but I don't know how to get the original parent node's name.
Thank you very much in advance,
Jan]]></description>
			<author><![CDATA[dummy@example.com (jan)]]></author>
			<pubDate>Tue, 25 May 2010 10:07:56 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/215/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Newbie]]></title>
			<link>http://mifjs.net/forum/topic/214/new/posts/</link>
			<description><![CDATA[Hi there!

I have been pointed to this js framework as I need a sortable nested list solution.

I have downloaded the tree builder files v1.2.6.1-packed.js, linked in my code and without actually doing anything else I get the error 

--- Line:1 Error Expected ; ---

Have a downloaded the wrong file in error?

Many thanks]]></description>
			<author><![CDATA[dummy@example.com (Shannow)]]></author>
			<pubDate>Fri, 14 May 2010 08:33:34 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/214/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Multi Selcting - Mif Tree]]></title>
			<link>http://mifjs.net/forum/topic/211/new/posts/</link>
			<description><![CDATA[Is there a way to select multiple nodes in the Mif Tree? I would like to be able to select, then drag and drop multiple items.



Apologies if this has already been discussed.]]></description>
			<author><![CDATA[dummy@example.com (moro)]]></author>
			<pubDate>Thu, 22 Apr 2010 07:40:55 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/211/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[MifTree and MifMenu integration]]></title>
			<link>http://mifjs.net/forum/topic/64/new/posts/</link>
			<description><![CDATA[moro,

Can you post an example of how to show MifMenu depending on a clicked MifTree node?

Thank you]]></description>
			<author><![CDATA[dummy@example.com (duduche1)]]></author>
			<pubDate>Tue, 06 Apr 2010 21:36:21 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/64/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[miftree: partialy checked]]></title>
			<link>http://mifjs.net/forum/topic/208/new/posts/</link>
			<description><![CDATA[Hello!

What should I put in state to make checkbox "partialy checked"?

Thank you in advance!]]></description>
			<author><![CDATA[dummy@example.com (bubchen)]]></author>
			<pubDate>Wed, 24 Mar 2010 13:33:08 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/208/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[Mif.Menu - hide menu when clicking other element?]]></title>
			<link>http://mifjs.net/forum/topic/207/new/posts/</link>
			<description><![CDATA[My case: I want to add Mif.Menu to a file/item manager I've been working on. Files/items are representated as div block elements on the page. You can select one or more of them like in Finder or Explorer and you can drag/drop them etc.
Now I want to add Mif.Menu to enable quick actions like copy/paste. I can attach Mif.Menu to each file/item-div individually, but I probably attach it to the container (which could be document.body, or some div). I'm playing with both options, the first is ofcourse more memory intensive and probably not needed.

Anyway- when you right click a file/item-div I get the context menu as expected, which works fine. When you click on the document.body ("outside" the context menu) the menu hides as expected as well. However, when you (left) click on another file/item-div on the page, the Mif.Menu is not being closed. I expect the Mif.Menu to close to mimic OS behavior (I'm not focusing on the item anymore for which the Mif.Menu is being shown).

How can I get the menu to close?
Mind you, the file/item-divs you can click on to select have a e.stopPropagation() so the event doesn't go all the way to the body.

I thought of a maybe-solution (but requires changes in org. code): instead of adding mousedown to the document (in addHideOnExtraClick) you could use something like outerClick ([url]http://cpojer.net/blog/Custom_outerClick_event[/url]) for closing the menu?

Thanks in advance]]></description>
			<author><![CDATA[dummy@example.com (moro)]]></author>
			<pubDate>Mon, 22 Mar 2010 07:05:17 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/207/new/posts/</guid>
		</item>
		<item>
			<title><![CDATA[in the latest Mif.Menu how can I create a dynamic menu on show event]]></title>
			<link>http://mifjs.net/forum/topic/202/new/posts/</link>
			<description><![CDATA[Hello,

In the old  Mif.Menu I used  onShow to create dynamic menu on the fly. 

With the code below It doesn't works :
[code]
        contextMenu = new Mif.Menu({
            onShow: function(e) {
                    var widget, target = e.target;

                        if  (widget.getContextMenu) {
                                                     // getContextMenu method return json structure compatible with Mif.menu
                                                     this.load( widget.getContextMenu() );
                        }
                    }
                }        
        
            }).attach('pageWrapper').load([
                {
                    name: 'test'
                }
            ])

[/code]
Note that   If menu is empty 'show' event is never called and load method call into onShow trigger
don't do nothing because menu is already loaded. 

What is the solution to achieve this ?

I've created another post related indirectly to this issue bease show event doesn't send context event when fired :

[url]http://mifjs.net/forum/topic/203/[/url]

Thank you]]></description>
			<author><![CDATA[dummy@example.com (scramatte)]]></author>
			<pubDate>Sun, 21 Mar 2010 11:27:15 +0000</pubDate>
			<guid>http://mifjs.net/forum/topic/202/new/posts/</guid>
		</item>
	</channel>
</rss>
