Skip to content
UI Framework for web applications.
CoffeeScript CSS Other
Latest commit ff35a72 Jun 7, 2016 @sinan sinan Merge pull request #157 from koding/TMS3145
Stop Scrolling When Element has scrollable attriubute
Failed to load latest commit information.
example add example Feb 22, 2016
lib scrollview: change attribute name Jun 7, 2016
.gitignore ignored dist folder Feb 22, 2016
.npmignore update ignored Feb 22, 2016
History.md Release 1.1.2 Feb 22, 2016
Makefile dist: css/js w/o sourcemaps Feb 22, 2016
Readme.md update readme Feb 22, 2016
index.coffee 0.2.0-rc1 Feb 22, 2016
package.json kd: new version Jun 6, 2016

Readme.md

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 and go to http://localhost:3000/example. This also starts a watchify process, so any changes you make in example/index.js will be recompiled on the spot.

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

Something went wrong with that request. Please try again.