public function __construct() { parent::__construct(); $this->setExtClassInfo("Ext.Button", "button"); $validProps = array("clickEvent", "disabled", "enableToogle", "handleMouseEvents", "handler", "hidden", "icon", "iconCls", "menu", "menuAlign", "minWidth", "name", "pressed", "repeat", "scope", "tabIndex", "text", "toogleGroup", "tooltip", "tooltipType", "type"); $this->addValidConfigProperties($validProps); }
public function __construct() { parent::__construct(); $this->setExtClassInfo("Ext.BoxComponent", "box"); $validProps = array("autoHeight", "autoWidth", "height", "width"); $this->addValidConfigProperties($validProps); }
/** * @param PhpExt_Form_Field $field A {@link PhpExt_Form_Field} object (or descendant) to use as editor */ public function __construct($field) { parent::__construct(); $this->setExtClassInfo("Ext.Editor", "editor"); $validProps = array("alignment", "autoSize", "cancelOnEsc", "completeOnEnter", "contrain", "hideEl", "ignoreNoChange", "revertInvalid", "shadow", "swallowKeys", "updateEl", "value"); $this->addValidConfigProperties($validProps); $this->_field = $field; }
protected function getConfigParams($lazy = false) { $params = parent::getConfigParams($lazy); // Items if ($this->_items->getCount() > 0) { $params[] = "menu: { items: " . $this->_items->getJavascript() . "}"; } return $params; }
/** * Adds a PhpExt_Component to the Collection * * @param PhpExt_Component $object * @param string $name * @return int the index of the new element */ public function add(PhpExt_Component $object, $name = null) { $object->setOwnerCollection($this); return $this->addObject($object, $name); }