Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

koboldmaki

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koboldmaki

Views inspired by backbone, built with components only

  • 0.1.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Koboldmaki

Build status

image

Views inspired by Backbone, built with components only.

Installation

Koboldmaki can be installed with component

$ component install manuelstofer/koboldmaki

Usage

It's very similar to Backbone views. One of the main differences is that Koboldmaki views are event emitters. The way to instantiate views is different as well. Koboldmaki is not class based.

var View = require('koboldmaki');

var MakiAlert = View.extend({
    events: {
        'clicked a': 'hideInTree'
    },

    initialize: function () {
        // do something
    },

    hideInTree: function () {
        this.el.innerHTML = 'Go koboldmaki, hide in a tree before they catch you!';
    },

    render: function () {
        this.el.innerHTML = '<div><a>catch a koboldmaki</a></div>';
    }
});

var makiAlert = new MakiAlert();
document.body.appendChild(makiAlert.el);

Koboldmaki provides a $ method that can query for DOM inside the view's root node using component/query. The $ method does not return any nodes that belong to a nested sub view.

FAQs

Package last updated on 21 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc