The page at:
dhtmlx.com/docs/products/dhtmlxW … nning.html
which doesnt show the earlier skin examples.
Any insight you could provide would be greatly appreciated.
Hello,
dhtmlxWindows/samples/init/skinning.html sample demonstrates the supported skins, but there are more skins that are included into the window package. You can set one of the addition skins using the same approach as one in the sample:
- the necessary css should be included (dhtmlxWindows/codebase/skins/…)
- setSkin(skinName) method should be called.
Just to clarify-
If I want to create my own skin based on dhtmlxwindows_clear_silver.css I would:
- Open the file /root_dhtmlxsuite/dhtmlxWindows/codebase/skins/dhtmlxwindows_clear_silver.css and save it as a new filename (e.g. dhtmlxwindows_custom_skin.css)
- Modify it as needed
- Call dhtmlxwindowObj.setSkin(‘custom_skin’);
Yes, but there is also one thing that should be done - dhtmlxwindows.js contains array skinParam with header and borders properties for each skin.
You should also add properties for new skin - dhtmlxwindows.js,line 51:
…
this.skinParams = { // standard
“custom_skin” : { “header_height”: 32, “border_left_width”: 6, “border_right_width”: 6, “border_bottom_height”: 6 },
…
}
…