"Native" menu with items of only text? Is it possible?


#1

I’m trying to create a native menu (in the main proces) with some headlines which are just text.
It could be something like:

--------- (separator)
Editing: (this is just text)
Copy
Cut
Paste
--------- (separator)
File handling: (this is just text)
Load
Save
blah blah
-------- (separator)

I tried to do this using “sections” in the const template = [ … submenu’s with only a label inside, e.g. :
{
label: "Editing: "
},
etc …

But it doesn’t work. It displays (apparently) empty rows in the menu instead.

Kind regards,
Michael