Skip to forum content

Mif

— mystic javascript interface

You are not logged in. Please login or register.


Post new reply

Post new reply

Compose and post your new reply

You may use: BBCode Images Smilies

All fields labelled (Required) must be completed before the form is submitted.

Required information for guests



Captcha image. Turn pictures on to see it.
Required information
Optional post settings

Topic review (newest first)

1

will be only context menu support.

2

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

3

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

4

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

5

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>