/** * @param ElementView $view * @return ElementView */ public function buildView(ElementView $view = null) { $view = new ElementView(); /** @var ElementView $view */ $view = parent::buildView($view); $view->rowBlock = 'checkbox_row'; return $view; }
/** * @param ElementView $view * @return ElementView */ public function buildView(ElementView $view = null) { $view = new ElementView(); $view = parent::buildView($view); $view->block = 'input'; $view->rowBlock = 'hidden_row'; return $view; }
/** * @param ElementView $view * @return ElementView */ public function buildView(ElementView $view = null) { $view = new ElementView(); $view = parent::buildView($view); $this->setValue(null); // Clearing the File value modifies the attributes and value properties $view->attributes = $this->attributes; $view->value = $this->value; return $view; }
/** * Clear value before rendering * * @param ElementView $view = null * @return \Forms\View\ElementView */ public function buildView(ElementView $view = null) { $this->setValue(''); return parent::buildView(); }