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

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.

主站蜘蛛池模板: 酉阳| 黄浦区| 兰考县| 天柱县| 乌苏市| 商都县| 湟中县| 洪泽县| 万州区| 彭水| 兴文县| 兴国县| 博湖县| 黄石市| 长葛市| 温泉县| 闽侯县| 延川县| 蒙阴县| 金沙县| 文安县| 临湘市| 青河县| 温泉县| 唐河县| 淮阳县| 榆树市| 福泉市| 满城县| 长寿区| 嘉义县| 阿鲁科尔沁旗| 运城市| 民和| 泊头市| 汨罗市| 仙居县| 东光县| 融水| 广元市| 扶风县|