Page 1 of 1

Plugin Layout Hook for Btn-Group

Posted: Jun 18, 2019 3:41 am
by econsor_ag
Hello,

I want to extend the btn-group from the layout_navbar_button_bar function inside the layout_api.php.
How would I go about that, I dont really want to add some jQuery to append new buttons, is that the only way?

Re: Plugin Layout Hook for Btn-Group

Posted: Jun 18, 2019 3:47 pm
by atrol
There is no event triggered in this function and there is no option similar to $g_main_menu_custom_options used in this function.
So there is no other way at the moment than to change the function or to use JavaScript.

Re: Plugin Layout Hook for Btn-Group

Posted: Jun 21, 2019 1:33 am
by econsor_ag
econsor_ag wrote:
Jun 18, 2019 3:41 am
Hello,

I want to extend the btn-group from the layout_navbar_button_bar function inside the layout_api.php.
How would I go about that, I dont really want to add some jQuery to append new buttons, is that the only way?
I used JavaScript / Jquery now but I hate how when the page is first loaded you can see two buttons before the rest is loaded :(

I would still appreciate any kind of advice / help.

Re: Plugin Layout Hook for Btn-Group

Posted: Jun 21, 2019 2:30 am
by atrol
These are your options
  • Change function layout_navbar_button_bar