A Brick custom element to wire up events and methods on different elements. It listens to an event on a source elemenet and then calls a method on a target element using event.detail as argument.
Check it live!
Import Web Components polyfill:
Import Custom Element:
<link rel="import" href="src/brick-action.html">
Start using it:
||string||ID of the target element.|
||string||the element itself||ID of the source element. If not provided, the
||string||Name of the event to listen for on the soure element.|
||Name of the method to call on the target element.|
Brick components use Stylus to generate their CSS.
This repository comes outfitted with a set of tools to ease the development process.
To get started:
$ npm install -g bower gulp
Install local dependencies:
$ npm install && bower install
While developing your component, there is a development server that will watch your files for changes and automatically re-build your styles and re-lint your code.
To run the development server:
- Navigate to
To simply build and lint your code, run
You can also push your code to GitHub Pages by running