
Security News
TC39 Advances 11 Proposals for Math Precision, Binary APIs, and More
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
stencil-context-menu
Advanced tools
Multi-level context menu component with lists and toggles.
<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>
Property | Attribute | Description | Type |
---|---|---|---|
horizontalOverlap | horizontal-overlap | Overlapping of child <> parent menus in pixel (default 8 ) | number |
zIndex | z-index | Sets the css attribute z-index to a custom value. Default is 100 whereas every child increments the value of its parent by one. | number |
Event | Description |
---|---|
hide | Fires when the menu is closed |
select | Fires on mouse down of any row with the attribute data-group |
show | Fires when the menu is opened |
toggle | Fires on mouse down of any row with the attribute data-toggle |
Method | Description |
---|---|
close | Close menu |
open | Open menu |
Built with StencilJS
FAQs
Did you know?
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.
Security News
TC39 advances 11 JavaScript proposals, with two moving to Stage 4, bringing better math, binary APIs, and more features one step closer to the ECMAScript spec.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.