惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Engineering at Meta
Engineering at Meta
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
小众软件
小众软件
博客园_首页
T
Tailwind CSS Blog
美团技术团队
博客园 - 叶小钗
Microsoft Security Blog
Microsoft Security Blog
有赞技术团队
有赞技术团队
Apple Machine Learning Research
Apple Machine Learning Research
大猫的无限游戏
大猫的无限游戏
Microsoft Azure Blog
Microsoft Azure Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
I
InfoQ
MongoDB | Blog
MongoDB | Blog
The Cloudflare Blog
J
Java Code Geeks
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
Blog — PlanetScale
Blog — PlanetScale
IT之家
IT之家
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Y
Y Combinator Blog

博客园 - 抱影无眠

CentOS7安装Nginx实现API网关 CentOS7中添加新硬盘 CentOS7 安装oracle 客户端 CentOS7安装RabbitMQ CentOS7安装MongoDB3.6企业版 CentOS 搭建Redis4 环境 Nginx 在Windows下搭建静态Web服务 DevExtreme 搭建Node.js开发环境 MongoDB 搭建Node.js开发环境 MongoDB Windows环境搭建 Oracle 搭建Node.js开发环境 搭建Node.js Redis开发环境 Redis Windows环境搭建 使用PM2守护Node.js应用 Windows下使用nvm管理多个Node.js 版本 vscode 插件todo-highlight Ionic 解决gradle下载慢的问题 Cmder 简明使用说明 Ionic2 开发环境搭建
Ionic2集成DevExtreme
抱影无眠 · 2017-09-27 · via 博客园 - 抱影无眠

安装Install DevExtreme Angular

npm install --save devextreme devextreme-angular

或者在package.json 文件中增加依赖

"devextreme": "^17.1.5",

"devextreme-angular": "^17.1.5",

导入DevExtreme模块,可以单独导入也可以完全导入

//Imports a separate module

import { DxButtonModule } from 'devextreme-angular/ui/button';

//Imports the entire DevExtreme

import { DevExtremeModule } from 'devextreme-angular';

@NgModule({

...

imports: [

...

DevExtremeModule,

...

]

})

应用DevExtreme样式

DevExtreme的样式文件目录在 node-modules\devextreme\dist\css

将所需要的样式文件复制到 src/asserts/css目录下

在index.html文件中链接样式文件

<link href="assets/css/dx.common.css" rel="stylesheet">
<link href="assets/css/dx.light.css" rel="stylesheet">

使用DevExtreme Component

. . .

<ion-content padding>

<h3>Welcome to your first Ionic app!</h3>

<dx-button text="Hello world"></dx-button>

. . .