hidden-brick

0.0.1 • Public • Published

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

/hidden-brick/

    Package Sidebar

    Install

    npm i hidden-brick

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Last publish

    Collaborators

    • bredele