Пример #1
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.form.Label", "label");
     $validProps = array("text", "anchor");
     $this->addValidConfigProperties($validProps);
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.Toolbar", "toolbar");
     $validProps = array("items");
     $this->addValidConfigProperties($validProps);
     $this->_items = new PhpExt_Toolbar_IToolbarItemCollection();
     $this->_items->setForceArray(true);
     $this->setExtConfigProperty("items", $this->_items);
 }
Пример #3
0
 protected function getConfigParams($lazy = false)
 {
     $params = parent::getConfigParams($lazy);
     $layout = $this->getLayout();
     if ($layout !== null) {
         if ($this->_defaultLayout !== null && $this->_defaultLayout->getLayoutKey() != $layout->getLayoutKey()) {
             $params[] = $this->paramToString("layout", $layout->getLayoutKey());
         }
         $layoutConfig = $layout->getJavascript(true);
         if ($layoutConfig != '{}') {
             $params[] = "layoutConfig:" . $layoutConfig;
         }
     }
     return $params;
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.form.Field", "field");
     $validProps = array("autoCreate", "clearCls", "cls", "disabled", "fieldClass", "fieldLabel", "focusClass", "hideLabel", "inputType", "invalidClass", "invalidText", "itemCls", "labelSeparator", "labelStyle", "msgFx", "msgTarget", "name", "readOnly", "tabIndex", "validateOnBlur", "validationDelay", "validationEvent", "value");
     $this->addValidConfigProperties($validProps);
 }
Пример #5
0
 /**
  * @param string $itemSelector A CSS selector in any format supported by Ext.DomQuery that will be used to determine what nodes this DataView will be working with.
  */
 public function __construct($itemSelector)
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.DataView", "dataview");
     $validProps = array("emptyText", "itemSelector", "loadingText", "multiSelect", "overClass", "selectedClass", "simpleSelect", "singleSelect", "store", "tpl");
     $this->addValidConfigProperties($validProps);
     $this->setItemCssSelector($itemSelector);
 }
Пример #6
0
include_once 'PhpExt/Layout/TabLayout.php';
include_once 'PhpExt/Layout/BorderLayout.php';
include_once 'PhpExt/Layout/BorderLayoutData.php';
include_once 'PhpExt/Layout/TabLayoutData.php';
include_once 'PhpExt/Grid/PropertyGrid.php';
/*
 * The container component for the border layout can also be a PhpExt_Viewport which will
 * fill the space provided by the browser. In these example a Panel is used to keep the website layout. 
 * See API Documentation for more info on Viewport.
 * 
 */
$viewport = new PhpExt_Panel();
$viewport->setHeight(600);
$viewport->setLayout(new PhpExt_Layout_BorderLayout());
// Norht Region
$north = new PhpExt_BoxComponent();
$north->setEl("north");
$north->setHeight(32);
$viewport->addItem($north, PhpExt_Layout_BorderLayoutData::createNorthRegion());
// South Region
$south = new PhpExt_Panel();
$south->setContentElement("south")->setCollapsible(true)->setTitle("South")->setHeight(100);
$viewport->addItem($south, PhpExt_Layout_BorderLayoutData::createSouthRegion()->setSplit(true)->setMinSize(100)->setMaxSize(200)->setMargins("0 0 0 0"));
// East Region
$east = new PhpExt_Panel();
$east->setTitle("East Size")->setCollapsible(true)->setWidth(225)->setLayout(new PhpExt_Layout_FitLayout());
$eastTabs = new PhpExt_TabPanel();
$eastTabs->setActiveTab(1)->setTabPosition(PhpExt_TabPanel::TAB_POSITON_BOTTOM)->setBorder(false);
// Tab 1
$t1 = new PhpExt_Panel();
$t1->setHtml('<p>A TabPanel component can be a region.</p>')->setTitle("A Tab")->setAutoScroll(true);
Пример #7
0
 public function __construct()
 {
     parent::__construct();
     $this->setExtClassInfo("Ext.ProgressBar", "progress");
     $validProps = array("baseCls", "id", "text", "textEl", "value");
     $this->addValidConfigProperties($validProps);
 }