Package Exports
- floating-options-menu
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (floating-options-menu) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
What is this?
Test code for floating options menu.
Installation
npm i cool-options-menu --save
Then ....
import {createMenu} from 'cool-options-menu';
element.onClick((evt) => {
createMenu(evt, [
{
text: "Item 1",
fn: function() {
console.log("you clicked item 1");
}
}
{
text: "Item 2",
fn: function() {
console.log("you clicked item 2");
}
}
])
});