Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue-cytoscape modal #106

Open
bengusuunal opened this issue May 18, 2022 · 0 comments
Open

Vue-cytoscape modal #106

bengusuunal opened this issue May 18, 2022 · 0 comments

Comments

@bengusuunal
Copy link

bengusuunal commented May 18, 2022

Hi, I want to create a modal that can open from menuItems(cytoscape-context-menu). Here is my codes
` {
id: 'modal',
content: 'modal', // Display content of menu item
tooltipText: 'modal', // Tooltip text for menu item
//image: {src : "remove.svg", width : 12, height : 12, x : 6, y : 4}, // menu icon
// Filters the elements to have this menu item on cxttap
// If the selector is not truthy no elements will have this menu item on cxttap
selector: 'node, edge',
onClickFunction: function (event) {// The function to be executed on click
//let target = event.target
console.log('modal element');
console.log(event.cy.nodes())
const openModal = () => {
this.$refs['my-modal'].show()
document.getElementById("myModal").style.visibility = visible
}

          },
          disabled: false, // Whether the item will be created as disabled
          show: true, // Whether the item will be shown or not
          hasTrailingDivider: true, // Whether the item will have a trailing divider
          coreAsWell: false, // Whether core instance have this item on cxttap
          submenu: [] // Shows the listed menuItems as a submenu for this item. An item must have either submenu or onClickFunction or both.
        },`

It did not work. Is there something I missed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant