Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Kirigami Kirigami
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 25
    • Issues 25
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 63
    • Merge requests 63
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FrameworksFrameworks
  • KirigamiKirigami
  • Issues
  • #14
Closed
Open
Issue created Mar 22, 2021 by Devin Lin@devinlin🎨Developer

Proposal: Convergent context menu component

I would like to discuss if it is worth making some form of convergent context menu component, that can take in a series of Kirigami actions, and then provide either a regular context menu, a drawer with options, or an overlay sheet with options depending on what the developer wants (maybe an enum).

This would be a simple list, and only be targeted at "right click/hold on item menus" specifically, if developers need anything more advanced they can create their own components.

It would also be nice to have a separator component that can be inserted between actions as well, interpreted depending on the type of context menu.

I also think it is worth extending the regular QQC2 Menu and dealing with some current headaches that people usually face:

  • Opening a menu at a cursor location doesn't allow it to be closed on click (it selects the first item), so it needs a one pixel offset
  • List entry highlights stays even when the mouse cursor leaves the menu
Edited Mar 22, 2021 by Devin Lin
Assignee
Assign to
Time tracking