A main menu
Install Stencil Main Menu using the AdaptiveJS generator:
yo adaptivejs:component --install stencil-main-menu
You can also install interactively by running yo adaptivejs:component
and choosing the install option.
Stencil components installed with the AdaptiveJS generator require no setup. Just load the component’s template in the desired view and use the dust helper to render it. For details, see using Components in AdaptiveJS.
{@c-main-menu class="" /}
{@c-main-menu class=""}
<em>example body content</em>
{/c-main-menu}
TODO: Should this section explain params vs bodies? What should it explain/differentiate? Should it list these here, or merely link to the schema file? If listing here, the format could look like:
- class {String} Additional values for the component’s
class
attribute
TODO: TBD
So, you’d like to improve the Stencil Main Menu component: awesome! Remember:
- Keep it simple. Components should represent one thing in a straightforward way.
- Keep it real. Ensure there’s a strong use case the for each feature.
- Keep it consistent. Install EditorConfig for your editor. This will help you follow our styleguide.
Cool? Alright, let’s do this!
- Clone (or fork) this repo.
- Install dependencies:
npm install && bower install && bundle install
. - Create your feature branch:
git checkout -b my-new-feature
. - Run
grunt serve
and use the component’s visual tests as a preview while you develop (see below). - Commit your changes:
git add -a && git commit -m 'Add my feature.'
. - Push to the branch:
git push -u origin my-new-feature
. - Submit a pull request :D
Each component has a set of unit tests (TBD).
Each component has a set of visual tests. These are implemented as an html page that is used to manually verify functionality against a spec (how it should look and behave). This is mainly useful for testing CSS and for development.
- Run
npm install && bower install && bundle install
- Run
grunt serve
and note the port number. It defaults to3000
but will use the next available port if another server is already running. - Navigate to localhost:{port}/tests/visual
MIT License. Stencil Main Menu is Copyright © 2014 Mobify. It is free software and may be redistributed under the terms specified in the LICENSE file.