mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-23 13:54:27 +02:00
ActionBar: add setBaseTarget() helper
This commit is contained in:
parent
a1469f46be
commit
5938f5051a
10
library/vendor/ipl/Web/Component/ActionBar.php
vendored
10
library/vendor/ipl/Web/Component/ActionBar.php
vendored
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user