Skip to content

Pass menu-title data attribute as option parameter #590

Closed
@Knochenmark

Description

@Knochenmark

The issue I ran into is, that the demo example for menu-titles works on static contextmenus but is not working for dynamic created menus. Since you dont have a callback about for the creation of the menu to set the data-attribute. I solved this by passing the menu-title string directly as option parameter, similar to className.

all i did was adding this on creation of the contextmenu
if(opt.title) opt.$menu.attr("data-menutitle", opt.title);

I might add a pull request.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions