2.0.0 • Published 6 years ago

widgetjs v2.0.0

Weekly downloads
45
License
MIT
Repository
github
Last release
6 years ago

widgetjs

A lightweight JavaScript component framework

widgetjs is a lightweight framework in JavaScript to separate web applications in multiples reusable components called widgets.

import {Widget} from "widgetjs";

class MyWidget extends Widget {
    constructor() {
        super();
        this.el.innerHTML = "<h1>Welcome to widgetjs!</h1>";
        this.on("dom:click h1", function() {
            window.location = "http://widgetjs.neoname.eu";
        });
    }
}

new MyWidget().appendTo(document.body);
  • Uses inheritance based on ES6 or helpers if you don't want to use ES6 classes.
  • Provides an events system separate from the DOM.
  • Provides life-cycle management for visual components.
  • Can be used with or without jQuery.

Read the documentation here

widgetjs is not a full featured framework that can handle all aspects of a web application like network communications or routing, there already exists good libraries for that. widgetjs only handles one aspect of web development: separation of visual components into independant entities. So it provides only features to serve that goal, namely widgets, events and lifecycle management.

To install:

npm install widgetjs

License: MIT

Supported browsers: All major browsers as well as IE down to IE9.

2.0.0

6 years ago

2.0.0-rc1

6 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.1

7 years ago

0.6.1

9 years ago

0.6.0

9 years ago