Skip to content

frostney/capsulated

Repository files navigation

Capsule

devDependency Status

Provides a widget with a view and logic.

Getting started

  1. Create a new capsule
var myCapsule = new Capsule();

Each Capsule can trigger events, where events can be added through .on and removed by using the .off method. An example would be:

myCapsule.on('test', function() {
  console.log('Do something');
});

myCapsule.trigger('test');
  1. Use the capsule

License

This is public domain. If that does not work for you, you can alternatively use the MIT license.

About

Meta-library for creating component structures

Resources

License

Stars

Watchers

Forks

Packages

No packages published