Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Zafrir on Feb 26, 2009 00:46
open dhtmlx forum
folders structure

It looks like css files expect the imgs folder to be located under it.
when integrating into a web project usually we have css folder to include all css files,
images folders to have al images located underneath it.

my folders structure for dhtmlx is:
all js files under main js/dhtmlx folder
all css files under css/dhtmlx folder
all images under images/dhtmlx folder

1. is there a way to have images located this way without changing the css?
2. is there a better recommended way for dhtmlx folders structure?

thanks,
Answer posted by Alex (support) on Feb 26, 2009 04:17

Folders css doesn't require images.

The path to the icons (custom images) can be defined using userdata:

myFolders.setUserData("icons_src_dir","../images/dhtmlx/");

Please, see the sample in the package dhtmlxFolders/samples/initialization/folders_init.html

Answer posted by Zafrir on Feb 26, 2009 05:45
Sorry,
 I did not refer to Folder component,
my question was referring all components....folders structure.
I'm using currently Grid,Treegrid,Combo,Calendar
calendar is using imgs under css....
I was looking for a generic solution to know how to integrate better.

Answer posted by Alex (support) on Feb 26, 2009 07:58

Yes, some components reguire the specific forders structure. 

The paths to the images can be changed directly in the css files.