Blesta Addons Posted July 20, 2015 Report Share 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 Quote Link to comment Share on other sites More sharing options...
Tyson Posted July 20, 2015 Report Share 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)); Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted July 21, 2015 Author Report Share 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 ? Quote Link to comment Share on other sites More sharing options...
Tyson Posted July 21, 2015 Report Share 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. Michael and Blesta Addons 2 Quote Link to comment Share on other sites More sharing options...
Blesta Addons Posted July 22, 2015 Author Report Share Posted July 22, 2015 Worked Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.