vaadin-context-menu

WebJar for vaadin-context-menu

License

License

Categories

Categories

Vaadin User Interface Web Frameworks
GroupId

GroupId

org.webjars.bowergithub.irvingwa
ArtifactId

ArtifactId

vaadin-context-menu
Last Version

Last Version

4.0.0-beta2-ai
Release Date

Release Date

Type

Type

jar
Description

Description

vaadin-context-menu
WebJar for vaadin-context-menu
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/irvingwa/vaadin-context-menu

Download vaadin-context-menu

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.irvingwa/vaadin-context-menu/ -->
<dependency>
    <groupId>org.webjars.bowergithub.irvingwa</groupId>
    <artifactId>vaadin-context-menu</artifactId>
    <version>4.0.0-beta2-ai</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.irvingwa/vaadin-context-menu/
implementation 'org.webjars.bowergithub.irvingwa:vaadin-context-menu:4.0.0-beta2-ai'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.irvingwa/vaadin-context-menu/
implementation ("org.webjars.bowergithub.irvingwa:vaadin-context-menu:4.0.0-beta2-ai")
'org.webjars.bowergithub.irvingwa:vaadin-context-menu:jar:4.0.0-beta2-ai'
<dependency org="org.webjars.bowergithub.irvingwa" name="vaadin-context-menu" rev="4.0.0-beta2-ai">
  <artifact name="vaadin-context-menu" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.irvingwa', module='vaadin-context-menu', version='4.0.0-beta2-ai')
)
libraryDependencies += "org.webjars.bowergithub.irvingwa" % "vaadin-context-menu" % "4.0.0-beta2-ai"
[org.webjars.bowergithub.irvingwa/vaadin-context-menu "4.0.0-beta2-ai"]

Dependencies

compile (6)

Group / Artifact Type Version
org.webjars.bowergithub.polymerelements : iron-media-query jar [2.0.0,3)
org.webjars.bowergithub.vaadin : vaadin-themable-mixin jar [1.1.0,2)
org.webjars.bowergithub.vaadin : vaadin-lumo-styles jar [1.0.0,2)
org.webjars.bowergithub.vaadin : vaadin-overlay jar [2.0.0,3)
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.vaadin : vaadin-element-mixin jar [1.0.1,2)

Project Modules

There are no modules declared in this project.

Bower version Published on webcomponents.org Build Status Gitter

<vaadin-context-menu>

Live Demo | API documentation

<vaadin-context-menu> is a Polymer element providing a contextual menu, part of the Vaadin components.

<vaadin-context-menu>
  <template>
    <vaadin-list-box>
      <vaadin-item>First menu item</vaadin-item>
      <vaadin-item>Second menu item</vaadin-item>
      <vaadin-item>Third menu item</vaadin-item>
      <hr>
      <vaadin-item disabled>Fourth menu item</vaadin-item>
      <vaadin-item disabled>Fifth menu item</vaadin-item>
      <hr>
      <vaadin-item>Sixth menu item</vaadin-item>
    </vaadin-list-box>
  </template>

  Open a context menu with <b>right click</b> or with <b>long touch.</b>
</vaadin-context-menu>

Screenshot of vaadin-context-menu

Getting Started

Vaadin components use the Lumo theme by default.

The file structure for Vaadin components

  • src/vaadin-context-menu.html

    Unstyled component.

  • theme/lumo/vaadin-context-menu.html

    Component with Lumo theme.

  • vaadin-context-menu.html

    Alias for theme/lumo/vaadin-context-menu.html

Running demos and tests in browser

  1. Fork the vaadin-context-menu repository and clone it locally.

  2. Make sure you have npm installed.

  3. When in the vaadin-context-menu directory, run npm install and then bower install to install dependencies.

  4. Run polymer serve --open, browser will automatically open the component API documentation.

  5. You can also open demo or in-browser tests by adding demo or test to the URL, for example:

Running tests from the command line

  1. When in the vaadin-context-menu directory, run polymer test

Following the coding style

We are using ESLint for linting JavaScript code. You can check if your code is following our standards by running gulp lint, which will automatically lint all .js files as well as JavaScript snippets inside .html files.

Creating a pull request

  • Make sure your code is compliant with our code linters: gulp lint
  • Check that tests are passing: polymer test
  • Submit a pull request with detailed title and description
  • Wait for response from one of Vaadin components team members

License

Apache License 2.0

Vaadin collects development time usage statistics to improve this product. For details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.

Versions

Version
4.0.0-beta2-ai