Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • $title - The title to display for the widget window
  • $attributes - An array of HTML attributes to set for the widget's primary container (e.g. array('id' => "my_widget_id", 'class' => "my_widget_class")).
  • $render - The are of the widget to render. This is necessary when renderings widgets via AJAX, so you can control the content that's replaced. Acceptable values include:
    • 'full' - The default value, will render the entire widget
    • 'content_section' - The full content including navigation (everything excluding box frame and title section)
    • 'common_box_content' - The content only ('content_section' excluding the navigation)
Code Block
languagephp
title/plugins/my_plugin/views/default/client_main.pdt
linenumberstrue
<?php
$this->Widget->clear();
$this->Widget->create("My Widget Title", array('id' => "my_widget_id", 'class' => "my_widget_class"), "full");

#
# TODO: Place widget contents here
#

$this->Widget->end();
?>

Window Decorations

 

...