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/
You are not logged in. Please login or register.
Mifjs forum — Mif.Tree, Mif.Menu » Help » node icons + json on the fly ? » Post new reply
All fields labelled (Required) must be completed before the form is submitted.
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/
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 ...
Does it exists a way to just specify the image file ?
no
Does it exists a way to just specify the image file ?
Beacause with this method I must have defined CSS styles before ...
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
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 ...
Mifjs forum — Mif.Tree, Mif.Menu » Help » node icons + json on the fly ? » Post new reply
Powered by PunBB