0.1.1 • Published 4 years ago

@jcdomber/grte-man-cat-menu v0.1.1

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

\

This webcomponent follows the open-wc recommendation.

This component can change an existing category and can also add a new menu category.

  • Category
  • Order number shown on the printout

Installation

npm i @jcdomber/grte-man-cat-menu

Usage

<script type="module">
  import 'grte-man-cat-menu/grte-man-cat-menu.js';
</script>

<grte-man-cat-menu
    category="Ensaladas"
    order=2
    @get-category=${getEventDetail}>
</grte-man-cat-menu>

Properties

  category: String
  order:    Number

Events

@click on the SAVE button. Expose the event: get-category

detail:

  • edited category
  • edited order

Tooling configs

For most of the tools, the configuration is in the package.json to reduce the amount of files in your project.

If you customize the configuration a lot, you can consider moving them to individual files.

Local Demo with es-dev-server

npm run start

To run a local development server that serves the basic demo located in demo/index.html