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

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.

主站蜘蛛池模板: 兴业县| 龙门县| 余干县| 云霄县| 民乐县| 海门市| 普陀区| 资兴市| 龙口市| 涞源县| 武清区| 汉川市| 沧州市| 自治县| 建昌县| 马山县| 新巴尔虎右旗| 宜黄县| 嘉黎县| 太谷县| 丹棱县| 二手房| 肥西县| 那曲县| 南京市| 南宁市| 临夏县| 额济纳旗| 文成县| 鄄城县| 灵山县| 黄冈市| 武汉市| 临湘市| 瑞昌市| 西和县| 汨罗市| 和政县| 兴业县| 信宜市| 哈尔滨市|