From 5938f5051a919e27e477b9e4ec7e0ca347e8ca70 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 14 Jul 2017 08:59:06 +0200 Subject: [PATCH] ActionBar: add setBaseTarget() helper --- library/vendor/ipl/Web/Component/ActionBar.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/library/vendor/ipl/Web/Component/ActionBar.php b/library/vendor/ipl/Web/Component/ActionBar.php index 61e70f7b..edb5db06 100644 --- a/library/vendor/ipl/Web/Component/ActionBar.php +++ b/library/vendor/ipl/Web/Component/ActionBar.php @@ -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; + } }