Blesta Addons Posted July 20, 2015 Report Posted July 20, 2015 that is a core fucntion or just a support manager ? if the core support it how to implement it ? just adding the line not working . $this->Widget->setWidgetButton("full_screen"); activa 1
Tyson Posted July 20, 2015 Report Posted July 20, 2015 It can be used for any widget in the admin interface, assuming the widget is within a "<section>", which it should be by default. $this->Widget->clear(); $this->Widget->setWidgetButton("full_screen"); $this->Widget->create("My Widget", array(), $this->Html->ifSet($render_section, null));
Blesta Addons Posted July 21, 2015 Author Report Posted July 21, 2015 i have done the same as described but it has no effect . i'm sur the widget inside section tag , but is not working . in the support manager work . is there anything else should be in consideration to work ?
Tyson Posted July 21, 2015 Report Posted July 21, 2015 Ah, yes, there is one more thing you will need to do since that UI event is not bound by default. The widget should have an ID set (e.g. "<section id='my_widget'>") then you add the JS to bind the GUI events, e.g.: <?php $this->Widget->clear(); $this->Widget->setWidgetButton("full_screen"); $this->Widget->create("My Widget", array('id' => "my_widget"), $this->Html->ifSet($render_section, null)); ... $this->Widget->end(); ?> <script> $(document).ready(function() { $("#my_widget").blestaBindGuiEvents(); }); </script> Then the full screen button should work. Blesta Addons and Michael 2
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now