0.0.4 • Published 4 years ago

@menucloud/mc-menus v0.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

Built With Stencil

@menucloud/mc-menus

This is an embeddeable webcomponent to be used for rendering publishedMenus from menucloud dashboard on other websites.

Properties

PropertyAttributeDescriptionTypeDefault
apiKeyapi-keystringundefined
betabetabooleanundefined
devdevbooleanundefined
locallocalbooleanundefined
menus--string[]undefined
restaurantIdrestaurant-idstringundefined

Using this component

Script tag

  • Publish to NPM
  • Put a script tag similar to this <script src='https://unpkg.com/@menucloud/mc-menus@0.0.1/dist/mc-menus.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

Node Modules

  • Run npm install @menucloud/mc-menus --save
  • Put a script tag similar to this <script src='node_modules/@menucloud/mc-menus/dist/mc-menus.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your template, JSX, html etc

In a stencil-starter app

  • Run npm install @menucloud/mc-menus --save
  • Add an import to the npm packages import @menucloud/mc-menus;
  • Then you can use the element anywhere in your template, JSX, html etc

Use in Vue

Code sample

  <mc-menu
    restaurant-id=""
    menus="[]"
    api-key=""
    dev
  ></mc-menu>
0.0.3

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago