protected function onComponentTag(ComponentTag $tag) { parent::onComponentTag($tag); $this->checkComponentTag($tag, 'input'); $this->checkComponentTagAttribute($tag, 'type', 'checkbox'); $tag->put('value', $this->getValue()); if ($this->isSelected($this->getValue())) { $tag->put('checked', 'checked'); } }
protected function onComponentTag(ComponentTag $tag) { parent::onComponentTag($tag); $this->checkComponentTag($tag, 'input'); $this->checkComponentTagAttribute($tag, 'type', 'file'); }
protected function onComponentTag(ComponentTag $tag) { parent::onComponentTag($tag); $tag->remove('name'); }