官术网_书友最值得收藏!

Creating the application file app.js>

The first application file is the app.js file. This will contain all of the JavaScript to create the components and interactions.

Let's start by creating the app.js file in the js/application directory.

Inside this file, add a config object at the top as shown in the following snippets:

var config = {
   imagePath: "js/dhtmlx/imgs/",
   iconPath: ""
}

This config object contains the global properties for the DHTMLX components. The imagePath property is the path where the images reside for the components styling. The second one which we left blank is the path where the icons will be stored. Icons can be used in several different components like the Modal Window header and the toolbar buttons.

Icons do not come with DHTMLX and have to be added from a free or purchased icons library.

主站蜘蛛池模板: 瑞安市| 柯坪县| 江达县| 巴南区| 龙江县| 公安县| 双柏县| 喀什市| 西盟| 铜陵市| 区。| 柞水县| 芦溪县| 洛宁县| 丰顺县| 五指山市| 景洪市| 林州市| 景德镇市| 枣庄市| 靖宇县| 温州市| 孝义市| 孝义市| 墨竹工卡县| 日喀则市| 汨罗市| 白沙| 隆昌县| 萍乡市| 五大连池市| 洛川县| 鲜城| 淅川县| 汉源县| 谢通门县| 汤原县| 榆中县| 林州市| 客服| 台州市|