/** * Defines the row width * @param int $width * @return \Ajax\semantic\html\content\HtmlGridRow */ public function setWidth($width) { if (\is_int($width)) { $width = Wide::getConstants()["W" . $width]; } $this->addToPropertyCtrl("class", $width, Wide::getConstants()); return $this->addToPropertyCtrl("class", "column", array("column")); }
public function compile(JsUtils $js = NULL, $view = NULL) { if ($this->_equalWidth) { $count = $this->count(); $this->addToProperty("class", Wide::getConstants()["W" . $count] . " fields"); } else { $this->addToProperty("class", "fields"); } return parent::compile($js, $view); }
/** * Defines the field width * @param int $width * @return \Ajax\semantic\html\collections\form\HtmlFormField */ public function setWidth($width) { if (\is_int($width)) { $width = Wide::getConstants()["W" . $width]; } $this->addToPropertyCtrl("class", $width, Wide::getConstants()); if (isset($this->_container)) { $this->_container->setEqualWidth(false); } return $this->addToPropertyCtrl("class", "wide", array("wide")); }
/** * Defines the grid width (alias for setWidth) * @param int $wide */ public function setWide($wide) { $wide = Wide::getConstants()["W" . $wide]; $this->addToPropertyCtrl("class", $wide, Wide::getConstants()); return $this->addToPropertyCtrl("class", "column", array("column")); }