0.0.5 • Published 5 years ago

@tengge1/xtype-html5 v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

xtype-html5

xtype-html5将常用的html5标签封装为类,可以像ExtJs那样通过javascript动态生成页面。这对于功能特别多、逻辑特别复杂的页面特别有用。

xtype-html5不保证兼容除最新版Chrome以外的其他浏览器。

使用方法:

var hello = XType.UI.create({
    xtype: 'div',
    html: 'Hello, world!'
});

hello.render();

其中,类型divdiv标签的的xtype,属性htmlControl控件的一个属性,它的值会被原生输出到页面上,请参照xtype.js使用说明。

依赖项

无。已包含xtype.js

安装方法

npm install @tengge1/xtype-html5

核心函数

Control: 所有控件基类

UI:用于html5控件的创建和管理。

请阅读xtype.js了解每个类的使用方法。

相关链接