Author Topic: Container names Elastic Skin  (Read 734 times)

Offline blackbird9223

  • Newbie
  • *
  • Posts: 1
Container names Elastic Skin
« on: April 16, 2023, 02:37:24 PM »

I hope this is the right place to ask, I just started working on my first plugin and I am struggling with the container names.

When I add something to the 'toolbar' container with
Code: [Select]
rcmail.add_element(button, 'toolbar'); nothing shows up.

Checking the source code of the Elastic skin I realized that for example the mail-menu.html creates a toolbar container referring to an element with the id 'mailtoolbar'.
Code: [Select]
<roundcube:container name="toolbar" id="mailtoolbar" />If I open up Roundcube in my browser there is no 'mailtoolbar' element, the menu is called 'toolbar-menu'.

So changing the container names to 'toolbar-menu' like this
Code: [Select]
<roundcube:container name="toolbar" id="toolbar-menu" />makes the button appear. Also the workaround with jQuery appendTo('#toolbar-menu') works.

So I am wondering are the container names wrong in the skin template or am I using them the wrong way!?