0.0.6 • Published 6 years ago

stencil-context-menu v0.0.6

Weekly downloads
8
License
MIT
Repository
github
Last release
6 years ago

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

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago