You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was passing style and customized icon class via icon properties like this (fw-bold and fs-4 are Bootstrap style classes):
$('.playlist').contextMenu({selector: 'li',build: function(target,e){// some code unrelated to this issue},callback: function(key,options){// some code unrelated to this issue},items: {"info": {name: "乐正绫 - 返夏",disabled: true,icon:" pi-right-arrow fw-bold fs-4"},"play": {name: "Play Instantly",icon: " pi-file-play-fill"},"play-next": {name: "Play Next",icon: " pi-plus"}}})
And it actually do the trick as shown below:
I wonder if there is an official way to achieve this.
The text was updated successfully, but these errors were encountered:
Paper-Folding
changed the title
I was passing style and customized icon via icon properties.
Seeking an official way to change context menu items style
Sep 10, 2021
I was passing style and customized icon class via icon properties like this (fw-bold and fs-4 are Bootstrap style classes):
And it actually do the trick as shown below:
I wonder if there is an official way to achieve this.
The text was updated successfully, but these errors were encountered: