Topic: Custom "plugin actions" for every node/leaf

Hi moro,

Here is one more idea.

It would be nice to be able to add custom item actions for every node/leaf of the tree.

It would look similar to your checkboxes, however user would be able to:

1. Define custom actions for every node/leaf;
2. Write & handle custom events.

User will have to supply custom action icons and write CSS.

For example, I might want to associate "ARCHIVE" or "DISABLE" action with every leaf/node.

Digging through your code I saw that it's not diffucult to do. I've already made your tree display icons for ADD, DELETE, RENAME node actions. It also handles actions well.

You just have to streamline plugin registration and offer users an API.

Thanks,
T>

Re: Custom "plugin actions" for every node/leaf

Hi moro,

Thank you for all of the recent updates!

Did you give this particular request a thought? In my opinion, this would be an extremely useful addition to the tree control whenever it is used to manage a hierarchy of nodes.

Temuri

Re: Custom "plugin actions" for every node/leaf

I think should be added only opportunity for integration with the context menu. And with menu items will be associate some actions.

Mb there is some examples where i can see what you want

Re: Custom "plugin actions" for every node/leaf

Here's what I came up with:

http://temuri.imnaishvili.com/miftree/tree_actions.gif

"plus" icon creates a subnode, "minus" removes a node, "R" renames a node. All done by customizing Mif.Tree.Draw.getHTML (plus some CSS work).

Actually, right-click context menu will be much more convenient, but this is a lot simpler start.

Temuri

Re: Custom "plugin actions" for every node/leaf

will be only context menu support.