ActionBar: add setBaseTarget() helper

This commit is contained in:
Thomas Gelf 2017-07-14 08:59:06 +02:00
parent a1469f46be
commit 5938f5051a

View File

@ -12,4 +12,14 @@ class ActionBar extends BaseElement
protected $tag = 'div';
protected $defaultAttributes = array('class' => 'action-bar');
/**
* @param string $target
* @return $this
*/
public function setBaseTarget($target)
{
$this->attributes()->set('data-base-target', $target);
return $this;
}
}