kero-adapter

kero adapter


License
MIT
Install
bower install kero-adapter

Documentation

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