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

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.

主站蜘蛛池模板: 中西区| 股票| 周至县| 中超| 汉中市| 松原市| 巴林右旗| 邳州市| 阳江市| 荆州市| 左权县| 和平区| 蒙山县| 曲沃县| 北碚区| 沁阳市| 佛坪县| 伊春市| 荔浦县| 沁水县| 罗江县| 常熟市| 桑植县| 垦利县| 工布江达县| 富宁县| 宾川县| 白沙| 临漳县| 灌南县| 亳州市| 当阳市| 孟津县| 嘉兴市| 阆中市| 江永县| 慈利县| 石台县| 湛江市| 余干县| 苍溪县|