Giter VIP home page Giter VIP logo

kd's Introduction

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

kd's People

Contributors

alex-ionochkin avatar arvidkahl avatar burakcan avatar canthefason avatar f avatar fatih avatar fatihacet avatar gokhansongul avatar gokhanturunc avatar gokmen avatar humanchimp avatar neelance avatar parshap avatar sent-hil avatar sinan avatar szkl avatar tetsuo avatar usirin avatar ybrs avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.