File: /pages/tutorials/object/object-05.php
<?php class Object05 extends Page { public function InitializeComponent() { parent::$PAGE_TITLE = "Tutorial : sortables Objects"; $this->render = new WSPObject(); $this->render->setId("my_render_object_5"); $this->render->setSortable(true); $green_square = new WSPObject("<br/><br/>", "1"); $green_square->setId("my_object_green_5"); $green_square->setStyle("background-color:#5BFF4F;"); $green_square->setAlign(WSPObject::ALIGN_CENTER); $green_square->setWidth(100); $green_square->setHeight(100); $red_square = new WSPObject("<br/><br/>", "2"); $red_square->setId("my_object_red_5"); $red_square->setStyle("background-color:#FF3300;"); $red_square->setAlign(WSPObject::ALIGN_CENTER); $red_square->setWidth(100); $red_square->setHeight(100); $blue_square = new WSPObject("<br/><br/>", "3"); $blue_square->setId("my_object_blue_5"); $blue_square->setStyle("background-color:cornflowerblue;"); $blue_square->setAlign(WSPObject::ALIGN_CENTER); $blue_square->setWidth(100); $blue_square->setHeight(100); $this->render->add($green_square, $red_square, $blue_square); } } ?>
Go back to tutorial of the componant Object
|