|
<?php include_once 'phpmoko/ui/Form/RichTextArea.php'; include_once 'phpmoko/ui/VerticalPanel.php';
class ModuleDemo implements WebModule { function getWidget() { $vPanel = new VerticalPanel(); $vPanel->setWidth("100%"); $vPanel->setSpacing(8); $area = new RichTextArea(); $area->setWidth("100%"); $vPanel->add(new HTML('<b>Without Menu:</b>')); $vPanel->add($area);
$area = new RichTextArea(); $area->setShowMenu(true); $area->setWidth("100%"); $vPanel->add(new HTML('<b>With Menu:</b>')); $vPanel->add($area); return $vPanel; } } ?>
|
|