0.0.1 • Published 10 years ago

hidden-brick v0.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

hidden-brick

Lego plugin to hide/show dom elements.

Installation

with component:

$ component install bredele/hidden-brick

with nodejs:

$ component install hidden-brick

Usage

First, add the plugin to your view (see lego to know more about views):

view.add('hide', require('hidden-brick'));

Basic

<span hide="bool">hide on truethy</span>
<span hide="!bool">show on truethy</span>

Listen changes on bool attribute of lego's view and apply hidden class.

see live example

License

MIT