GithubHelp home page GithubHelp logo

Comments (5)

VWoeltjen avatar VWoeltjen commented on June 14, 2024

Would also like this as a reusable component which can also be shown next to labels in a layout. Would suggest doing this as a new representation (maybe "menu-arrow") so that it easy to reuse from various places.

from openmct.

slhale avatar slhale commented on June 14, 2024

We talked about in the future there possibly being different context menus for Browse and Edit mode. Does this mean that right now I should make the menu arrow's context menu available in both Browse and Edit mode, or just Browse mode?

from openmct.

slhale avatar slhale commented on June 14, 2024

I have a problem that I think requires some design decisions to be fixed, so I can't really fix it myself.

The ContextMenuAction was previously set to dismiss the context menu on a click. I had to change this, as it would register the initial left click on the menu arrow as this click to close the context menu, and so never show the context menu. I changed it to mousedown, which allowed the context menu to be shown by either normal contextmenu actions, or left clicking the menu arrow. But, I just realized that this does not allow the user to actually click on anything inside the context menu. Because a mousedown is registered before a click, the mousedown to close the context menu happens before the click to do the action inside the context menu.

What should I do to fix the behavior?
(Or is there another way that I don't know about?)

from openmct.

VWoeltjen avatar VWoeltjen commented on June 14, 2024

Resolved by #47

from openmct.

VWoeltjen avatar VWoeltjen commented on June 14, 2024

Verified during testathon 9/17/2015

from openmct.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.