Beispiel #1
0
 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');
 }
Beispiel #3
0
 protected function onComponentTag(ComponentTag $tag)
 {
     parent::onComponentTag($tag);
     $tag->remove('name');
 }