Jump to content

Recommended Posts

Posted

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));
Posted

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 ?

Posted

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.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...