Skip to content

Add new option parameter menuTitle #591

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

Closed
wants to merge 4 commits into from

Conversation

Knochenmark
Copy link

@Knochenmark Knochenmark commented Jan 3, 2018

This allows to pass a string menuTitle that will be set as data-attribute to the contextmenu, which than can be used as css selector to display the menuTitle string as title in the before pseudoelement similar to the examples in the demos. The advantages are that this allows for titles on dynamic created contextmenus and the string can be altered before each creation, which allows for i18n.

Closes #590

Created a gist to showcase the altered css from the demo using the data-attribute:
https://gist.github.com/Knochenmark/550c96257266772630245fc35d544068

@bbrala bbrala closed this in 32bdc38 Oct 6, 2019
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

Successfully merging this pull request may close these issues.

Pass menu-title data attribute as option parameter
1 participant