topcoat-button-bar-template

0.1.1 • Public • Published

Button Bar Template

This module supplies an optimized precompiled lodash template for use in the browser.

Install

npm i topcoat-button-bar-template --save

Usage

var ButtonBar = require('topcoat-button-bar-template');

  var container = document.querySelector('.container');
  container.innerHTML = ButtonBar({"namespace": "topcoat","buttons": [
    {"label":"a"},
    {"label":"b"},
    {"label":"c"},
    {"label":"d"}
  ]});

Look in the example directory for more details.

Build

The example uses browserify for JavaScript bundles and resinate for CSS bundles to cut down on the rigmarole of supplying modules to the browser.

If you want to play with the example you can make changes then update the output by opening terminal and typing npm run build.

Look at the scripts section of package.json for more details.

Tests

To run the tests open terminal and type:

npm install
npm test

Package Sidebar

Install

npm i topcoat-button-bar-template

Weekly Downloads

0

Version

0.1.1

License

Apache2

Last publish

Collaborators

  • dam