Giter Site home page Giter Site logo

stencil-main-menu's Introduction

Stencil Main Menu

A main menu

Demo

Installation

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.

Usage

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.

Examples

{@c-main-menu class="" /}
{@c-main-menu class=""}
    <em>example body content</em>
{/c-main-menu}

API

Template

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

UI script

TODO: TBD

Contributing

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!

  1. Clone (or fork) this repo.
  2. Install dependencies: npm install && bower install && bundle install.
  3. Create your feature branch: git checkout -b my-new-feature.
  4. Run grunt serve and use the component’s visual tests as a preview while you develop (see below).
  5. Commit your changes: git add -a && git commit -m 'Add my feature.'.
  6. Push to the branch: git push -u origin my-new-feature.
  7. Submit a pull request :D

Unit Tests

Each component has a set of unit tests (TBD).

Visual Tests

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 to 3000 but will use the next available port if another server is already running.
  • Navigate to localhost:{port}/tests/visual

License

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.

stencil-main-menu's People

Contributors

ry5n avatar avelinet avatar

Watchers

Igor Faletski avatar Jeremy Wiebe avatar Shawn Jansepar avatar Steve Calvert avatar Ira Mitchell avatar Arthur Chan avatar Gabriel Hernandez avatar Mike Klemarewski avatar Jose Barrios avatar James Cloos avatar Zoe Hardisty avatar Seb Vetter avatar Mobify Deploy Bot avatar Jennifer Bandelin avatar  avatar  avatar Benjamin Terrill avatar Anton Bielousov avatar  avatar Artem Shananin avatar Vivian Chen avatar Anoop Aulakh avatar Kyle Young avatar David Fay avatar Jason Zhang avatar Oliver avatar Mahdi Soleimani avatar Olivya Striloff avatar Cole Sanderson avatar Tina Wang avatar Chris Bildfell avatar  avatar Rob Schwartz avatar  avatar Karey Shumansky avatar Hussain Dhanani avatar Alicia Woodside avatar  avatar Aaron Metta avatar Kimberly Dextras-Romagnino avatar Stephen Cheung avatar  avatar  avatar Mobot Robot avatar Richard Sexton avatar  avatar  avatar Yoony Jiyoon Ok avatar  avatar Yana Bobrysheva avatar Andre Ponnouradjane avatar Lansi Chu avatar  avatar  avatar  avatar Farnush Farhadi avatar Judah Okwuobi avatar James Semple avatar BenCRO avatar Obie Egwim avatar  avatar  avatar Melissa Cheng avatar Alex Myers avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.