kd.js

Web 应用程序的用户界面框架。「UI Framework for web applications.」

Github星跟踪图

Build Status npm Coverage Status

kd.js

a collection of ui widgets and other nice things.

npm i kd.js

usage

var main = new kd.View;
main.appendToDomBody();

var input = new kd.InputView;
var form = new kd.View;

form.addSubView(input);
form.addSubView(new kd.ButtonView({
  title: 'i\'m a button. type in your name and click on me',
  callback: function () {
    alert('sup ' + input.getValue())
  }
}));

var tabs = new kd.TabView({
  hideHandleCloseIcons: true,
  paneData: [
    {
      title: 'tab1',
      partial: 'that\'s me, tab1'
    },
    {
      title: 'form',
      view: form
    }
  ]
});

main.addSubView(tabs);

example

Type make example to checkout some examples.

development

To watch lib and build standalone umd package into dist folder upon changes, type: make development-dist

If you want to recompile each coffee individually into build folder, type: make development

Since package.json exposes only build folder; if you are bundling kd.js with browserify, second method (along with a npm link) might be a better option.

license

mit

主要指标

概览
名称与所有者koding/kd
主编程语言CoffeeScript
编程语言CoffeeScript (语言数: 4)
平台
许可证MIT License
所有者活动
创建于2014-03-12 03:54:59
推送于2018-07-03 11:14:52
最后一次提交2017-10-16 05:16:06
发布数37
最新版本名称1.2.4 (发布于 )
第一版名称0.1.0 (发布于 )
用户参与
星数115
关注者数20
派生数34
提交数3.2k
已启用问题?
问题数13
打开的问题数2
拉请求数137
打开的拉请求数0
关闭的拉请求数33
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?