will be only context menu support.
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 » Feature requests » Custom "plugin actions" for every node/leaf » Post new reply
All fields labelled (Required) must be completed before the form is submitted.
will be only context menu support.
Here's what I came up with:

"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
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
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
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>
Mifjs forum — Mif.Tree, Mif.Menu » Feature requests » Custom "plugin actions" for every node/leaf » Post new reply
Powered by PunBB