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
發布數37
最新版本名稱1.2.4 (發布於 )
第一版名稱0.1.0 (發布於 )
創建於2014-03-12 03:54:59
推送於2018-07-03 11:14:52
最后一次提交2017-10-16 05:16:06
星數114
關注者數21
派生數35
提交數3.2k
已啟用問題?
問題數13
打開的問題數2
拉請求數137
打開的拉請求數0
關閉的拉請求數33
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?
去到頂部