A adapter for kero - kero数据层适配器
JavaScript HTML
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
.idea
dist
js
lib
locales
test
vendor
.babelrc
.eslintrc
.gitignore
.npmignore
CHANGELOG-ALL.md
CHANGELOG.md
CONTRIBUTING.md
LICENSE
README.md
README_CN.md
bower.json
changeSort.js
getAllChange.js
gulpfile.js
package.json
version.js
webpack.config.js

README.md

npm version Build Status devDependency Status NPM downloads

中文文档

Introduction

kero-adapter A adapter for kero and tinper neoui

Features

Create component

Simplify data manipulation

Quickstart

Quickstart

  • From github
git clone git@github.com:iuap-design/kero-adapter.git
  • npm
npm install kero-adapter

simple example


<input id="demo_input" u-meta='{"id":"t1","type":"string","data":"dt1","field":"f1"}' />
<div id="demo_div">&lt;/div></code></pre>
</div>
// JS
var app,viewModel;

viewModel = {
    dt1: new u.DataTable({
        meta:{
            f1:{
                type:'string'
            }
        }
    })
};


app = u.createApp({
    el:'body',
    model:viewModel
});

var r = viewModel.dt1.createEmptyRow();
r.setValue('f1','Hello World');



var demoInput = document.getElementById('demo_input');
var demoDiv = document.getElementById('demo_div');

var getDtValue = function() {
    var dtVal = viewModel.dt1.getValue('f1');
    demoDiv.innerHTML = dtVal;
};
demoInput.addEventListener('blur',getDtValue);
getDtValue();

Document

Develop documentation

Website

Contributing

Feedback

If you encounter any problems , submit issues,or pull request。

PR code

Develop

Developers can participate in the development of kero-adapter, but also can be based on kero-adapter two development

kero-adapter use gulp.js and webpack build the project.

clone:

$ git clone git@github.com:iuap-design/kero-adapter.git

install:

$ npm install

build:

$ npm run product

Website Chat Group

527124070

Licence 版权

MIT