3.0.0 • Published 8 years ago

nd-view v3.0.0

Weekly downloads
2
License
-
Repository
github
Last release
8 years ago

nd-view

Travis Coveralls NPM version

simple view with actions.

安装

$ npm install nd-view --save

使用

var __ = require('nd-i18n');
var View = require('nd-view');

// use View
new View({
  actions: [{
    role: 'back',
    text: __('返回')
  }, {
    role: 'forward',
    text: __('前进')
  }]
})
.on('back', function() {
  // do something
})
.on('forward', function() {
  // do something
})
.render();