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

I've found these snippets to create CSS using javascript

http://webdevel.blogspot.com/2006/06/cr … cript.html
http://www.webscriptexpert.com/Javascri … avascript/

2

what happens is that without this feature is complicate to handle  icons on the fly with JSON.
Because is not easy to create CSS style with javascript ...

3

scramatte wrote:

Does it exists a way to just specify  the image file ?

no

4

Does it exists a way to just specify  the image file ?
Beacause with this method I must have defined CSS styles before ...

5

you can create classes reflects icons, and add their:

[    
    {
        "property": {
            "name": "root",
            "openIcon": "open_icon_class",
            "closeIcon": "close_icon_class"
        },
        "children": [
            {
                "property": {
                    "name": "node1",
                    "openIcon": "another_open_icon_class",
                    "closeIcon": "another_close_icon_class"
                }
            }
        ]
    }
]

or create types with openIcon and closeIcon properties and use their

6

Hello,

How can I handle custom icons  on the fly with JSON ?
I know that can use style property but I must setup all styles before on tree init.

What I want to do is affect an icon to a node on the fly ...