<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Mifjs forum — Mif.Tree, Mif.Menu]]></title>
	<link rel="self" href="http://www.mifjs.net/forum/feed/atom/forum/5/"/>
	<updated>2010-08-23T14:11:29Z</updated>
	<generator>PunBB</generator>
	<id>http://mifjs.net/forum/</id>
		<entry>
			<title type="html"><![CDATA[Support: Mootools dollar safe mode]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/226/new/posts/"/>
			<summary type="html"><![CDATA[Please support Mootools dollar safe mode. It is recommended that you use document.id() instead of $() in your class files or wrap them with:

[code]
(function($){
     /* your class files here */
})(document.id);
[/code]

This makes Mootools and your classes safe when used with other JavaScript libraries such as jQuery.]]></summary>
			<author>
				<name><![CDATA[madrussa]]></name>
				<uri>http://mifjs.net/forum/user/72/</uri>
			</author>
			<updated>2010-08-23T14:11:29Z</updated>
			<id>http://mifjs.net/forum/topic/226/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[initRows gone?]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/221/new/posts/"/>
			<summary type="html"><![CDATA[Hello,

I was wondering what happened to initRows.  I tried searching and couldn't find anything about it.

I recently updated from an older version and this feature is gone now, and I was getting a good use out of it.

Was there a specific reason it disappeared?

Just curious.  Thanks!]]></summary>
			<author>
				<name><![CDATA[Tickthokk]]></name>
				<uri>http://mifjs.net/forum/user/53/</uri>
			</author>
			<updated>2010-07-15T15:05:51Z</updated>
			<id>http://mifjs.net/forum/topic/221/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Quick tree editing with a small toolbar]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/220/new/posts/"/>
			<summary type="html"><![CDATA[Hello, I'm french, and I use Mif.Tree for my project.

I have made an extension which shows a little toolbar on the right of the selected item.
You can also customize the buttons, their name and their icon, and you can add a fadding effect too (default).

I named this Mif.Tree.QuickToolbar.
I hope it will help open source community ^^

Capture :
[img]http://img145.imageshack.us/img145/7161/capturetq.png[/img]

HTML :
[code]<h1>Mif.Tree quick editing</h1>
<div id="tree_container" class="container"></div>[/code]

JS :
[code]window.addEvent( 'domready', function()
{
    var myTree = new Mif.Tree(
    {
        container: $( 'tree_container' ),
        types: {
            folder: {
                openIcon: 'mif-tree-open-icon',
                closeIcon: 'mif-tree-close-icon'
            }
        },
        dfltType: 'folder',
        height: 18,
        initialize: function()
        {
            new Mif.Tree.QuickToolbar( this, { buttons:
            [{
                action: 'add',
                icon: 'css/add.png',
                title: 'Add a child node'
            },
            {
                action: 'rename',
                icon: 'css/rename.png',
                title: 'Rename this node'
            },
            {
                action: 'remove',
                icon: 'css/remove.png',
                title: 'Delete this node'
            }]});
        }
    });

    myTree.addEvent( 'action', function( action, node )
    {
        if ( action == 'add' )
            node.tree.add( { property: { name: 'newNode' } }, node, 'inside' );
        else if ( action == 'rename' )
            node.rename();
        else if ( action == 'remove' )
            node.remove();
    });

    myTree.load( { url: 'tree.json' } );
});[/code]

CSS :
[code]/*@quicktoolbar*/

.mif-tree-quicktoolbar
{
    display:      inline;
    height:       13px;
    cursor:       default;
    overflow:     hidden;
    font-family:  sans-serif;
    font-size:    11px;
    padding-left: 8px;
    z-index:      1;
}

.mif-tree-quicktoolbar-button
{
    overflow:     hidden;
    height:       13px;
    margin-left:  4px;
    cursor:       pointer;
}[/code]

Icons are found here : [url]http://www.famfamfam.com/lab/icons/silk/[/url]

If you use this script, please give your comments !
Thanks

Cordially,
Charly Lersteau]]></summary>
			<author>
				<name><![CDATA[moro]]></name>
				<uri>http://mifjs.net/forum/user/146/</uri>
			</author>
			<updated>2010-07-14T20:44:07Z</updated>
			<id>http://mifjs.net/forum/topic/220/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Finish node renaming on]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/212/new/posts/"/>
			<summary type="html"><![CDATA[[code]
Mif.Tree.implement({
    
    // ...
    
    startRename: function(node){
        
        // ...

        input.addEvent('blur', this.beforeRenameComplete.bind(this));
        
        // ...
    }

    // ...
});
[/code]

thx André ;o)]]></summary>
			<author>
				<name><![CDATA[AFiedler]]></name>
				<uri>http://mifjs.net/forum/user/133/</uri>
			</author>
			<updated>2010-04-22T13:54:01Z</updated>
			<id>http://mifjs.net/forum/topic/212/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Add an selectOnDrag option to Mif.Tree.Drag]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/210/new/posts/"/>
			<summary type="html"><![CDATA[Please add an option for disabling auto-select on dragging over an node.
If i comment this line out:

if(target && target.tree) this.tree.select(target);

i don´t see an insertion marker (blue small line) any more.
How should i fix this?

thx André]]></summary>
			<author>
				<name><![CDATA[moro]]></name>
				<uri>http://mifjs.net/forum/user/133/</uri>
			</author>
			<updated>2010-04-22T07:40:18Z</updated>
			<id>http://mifjs.net/forum/topic/210/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Mif.menu drawed only with css ...]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/201/new/posts/"/>
			<summary type="html"><![CDATA[Hello,

It would be nice to have a Mif.menu only drawed using CSS new attributes  for shadow, round corners, ...

Take a look to this resource for shadow
[url]http://markusstange.wordpress.com/2009/02/15/fun-with-box-shadows/[/url]

And these lines do the job for all new modern browser :
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;

Thank you]]></summary>
			<author>
				<name><![CDATA[scramatte]]></name>
				<uri>http://mifjs.net/forum/user/38/</uri>
			</author>
			<updated>2010-03-22T12:48:26Z</updated>
			<id>http://mifjs.net/forum/topic/201/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Mif.Menu: unable to get the current event object whent events fired]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/203/new/posts/"/>
			<summary type="html"><![CDATA[Hi,

I'm  unable to get the current event object whent events fired.
I mean that for example when  'show' event is fired  event object passed as argument. 

In my case  I use event delegation and I need this to be able to open correct menu.

In Mif.Menu.js file on line 66 to do the job I've replaced :

return this.fireEvent('show');

by 

return this.fireEvent('show', [ coords.event ]);



Thank you]]></summary>
			<author>
				<name><![CDATA[scramatte]]></name>
				<uri>http://mifjs.net/forum/user/38/</uri>
			</author>
			<updated>2010-03-22T12:42:12Z</updated>
			<id>http://mifjs.net/forum/topic/203/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Only certain nodes have a checkbox and not others]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/8/new/posts/"/>
			<summary type="html"><![CDATA[Hello Moro,

Thank you for providing such a great Tree object.

I have a little feature request:
How about being able to set a check box only to certain nodes instead of all or nothing?

Cheers,
Peter]]></summary>
			<author>
				<name><![CDATA[scramatte]]></name>
				<uri>http://mifjs.net/forum/user/5/</uri>
			</author>
			<updated>2010-01-24T11:13:07Z</updated>
			<id>http://mifjs.net/forum/topic/8/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Include the serialize method in the Builder ?]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/169/new/posts/"/>
			<summary type="html"><![CDATA[Hello !

May I suggest you to include the serialize in the Mif Builder ? ([url]http://mifjs.net/trunk/tree/Download/Builder/[/url]) ?

Kind regards ! :-)]]></summary>
			<author>
				<name><![CDATA[Levure]]></name>
				<uri>http://mifjs.net/forum/user/93/</uri>
			</author>
			<updated>2009-10-02T08:19:05Z</updated>
			<id>http://mifjs.net/forum/topic/169/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Add multiple checkboxes or radio buttons per node]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/162/new/posts/"/>
			<summary type="html"><![CDATA[Hi,

First, thanks for this great piece of js. It saves me a lot of harmful code.

I would like to set multiple checkboxes per node (with dependancies) and add some restriction: only select one or none of them per node, like a radio button.

I understand this is not easy, but is it possible to add this feature ?

Thanks a lot.]]></summary>
			<author>
				<name><![CDATA[moro]]></name>
				<uri>http://mifjs.net/forum/user/91/</uri>
			</author>
			<updated>2009-09-21T08:34:11Z</updated>
			<id>http://mifjs.net/forum/topic/162/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[maxdepth required]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/150/new/posts/"/>
			<summary type="html"><![CDATA[First of all, big thanks for that great stuff.

I'd like to have something like a maxdepth param. It would be great, if one could limit the d'n'd to a certain level easily.

;J]]></summary>
			<author>
				<name><![CDATA[jobo]]></name>
				<uri>http://mifjs.net/forum/user/82/</uri>
			</author>
			<updated>2009-06-17T11:06:17Z</updated>
			<id>http://mifjs.net/forum/topic/150/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[1 Line of display code for highlighting control]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/125/new/posts/"/>
			<summary type="html"><![CDATA[Hey, 

Could you change Mif.Tree.Draw.getHTML to include the below span tag and class?  This allows me to highlight the node image and text like they do in vista.  Let me know what ya think.  

Thanks!

Will

Code: All i did was add a [color=blue]span[/color] tag with the class [color=red]'mif-tree-node-content-wrapper'[/color]

[code]
Mif.Tree.Draw.getHTML = function(node,html){
        var prefix=node.tree.DOMidPrefix;
        if($defined(node.state.checked)){
            if(!node.hasCheckbox) node.state.checked='nochecked';
            var checkbox='<span class="mif-tree-checkbox mif-tree-node-'+node.state.checked+'" uid="'+node.UID+'">'+Mif.Tree.Draw.zeroSpace+'</span>';
        }else{
            var checkbox='';
        }
        html=html||[];
        html.push(
        '<div class="mif-tree-node ',(node.isLast() ? 'mif-tree-node-last' : ''),'" id="',prefix,node.UID,'">',
            '<span class="mif-tree-node-wrapper ',node.cls,'" uid="',node.UID,'">',
                '<span class="mif-tree-gadjet mif-tree-gadjet-',node.getGadjetType(),'" uid="',node.UID,'">',Mif.Tree.Draw.zeroSpace,'</span>',
                '<span class="mif-tree-node-content-wrapper" uid="',node.UID,'">',
                    checkbox,
                    '<span class="mif-tree-icon ',node.closeIcon,'" uid="',node.UID,'">',Mif.Tree.Draw.zeroSpace,'</span>',
                    '<span class="mif-tree-name" uid="',node.UID,'">',node.name,'</span>',
                '</span>',
            '</span>',
            '<div class="mif-tree-children" style="display:none"></div>',
        '</div>'
        );
        return html;
    };

[/code]]]></summary>
			<author>
				<name><![CDATA[wbarnes]]></name>
				<uri>http://mifjs.net/forum/user/57/</uri>
			</author>
			<updated>2009-04-15T17:01:33Z</updated>
			<id>http://mifjs.net/forum/topic/125/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Use cookies to remember expanded nodes]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/13/new/posts/"/>
			<summary type="html"><![CDATA[It would be nice to store IDs of expanded nodes in cookies to auto-open them if the page is reloaded.

T>]]></summary>
			<author>
				<name><![CDATA[moro]]></name>
				<uri>http://mifjs.net/forum/user/4/</uri>
			</author>
			<updated>2009-04-10T16:10:24Z</updated>
			<id>http://mifjs.net/forum/topic/13/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Static NODE]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/114/new/posts/"/>
			<summary type="html"><![CDATA[I mean by Static NODE, a node that you can't DnD, Rename, Delete ...  
In my case it will usefull because I don't wan't to let changing any main nodes.]]></summary>
			<author>
				<name><![CDATA[scramatte]]></name>
				<uri>http://mifjs.net/forum/user/38/</uri>
			</author>
			<updated>2009-04-10T14:11:32Z</updated>
			<id>http://mifjs.net/forum/topic/114/new/posts/</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Trigger support...]]></title>
			<link rel="alternate" href="http://mifjs.net/forum/topic/110/new/posts/"/>
			<summary type="html"><![CDATA[Hello,

I've implemented triggers per node. You can assign a specific handler for each node / event. 

My only problem is that each event fired to the tree should also be fire to the proper node.
For example   "drop", "select",  "click"  ... 

Moro ! I will be happy to help in include this feature in the trunk but we need to discuss it ...

Cheers]]></summary>
			<author>
				<name><![CDATA[moro]]></name>
				<uri>http://mifjs.net/forum/user/38/</uri>
			</author>
			<updated>2009-03-29T11:37:52Z</updated>
			<id>http://mifjs.net/forum/topic/110/new/posts/</id>
		</entry>
</feed>

