New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

stencil-context-menu

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stencil-context-menu

Stencil Context-Menu

  • 0.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Built With Stencil

context-menu

Multi-level context menu component with lists and toggles.

Screenshot

Example

<context-menu>
    <div>Open<aside class="uc">enter</aside></div>
    <div class="sticky">Sticky</div>
    <hr/>
    <div>
        Nested menu...
        <context-menu>
            <div>
                Groups
                <context-menu>
                    <div data-group="groupId" class="selected">Apples</div>
                    <div data-group="groupId">Bananas</div>
                    <div data-group="groupId">Oranges</div>
                </context-menu>
            </div>
            <div>
                Toggles
                <context-menu>
                    <div data-toggle="checked" class="checked">Basic toggle</div>
                    <div data-toggle="crossed" class="checked">Extended toggle</div>
                </context-menu>
            </div>
            <hr/>
            <div class="sticky selected">Static prefix</div>
        </context-menu>
    </div>
</context-menu>

Properties

PropertyAttributeDescriptionType
horizontalOverlaphorizontal-overlapOverlapping of child <> parent menus in pixel (default 8)number
zIndexz-indexSets the css attribute z-index to a custom value. Default is 100 whereas every child increments the value of its parent by one.number

Events

EventDescription
hideFires when the menu is closed
selectFires on mouse down of any row with the attribute data-group
showFires when the menu is opened
toggleFires on mouse down of any row with the attribute data-toggle

Methods

MethodDescription
closeClose menu
openOpen menu

Built with StencilJS

FAQs

Package last updated on 21 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc