Skip to content

Commit

Permalink
Implement tabs extend() method
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab authored and nilmerg committed Apr 20, 2021
1 parent d05cfcf commit 0067b9d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Widget/Tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Icinga\Web\Widget\Tabextension\DashboardAction;
use Icinga\Web\Widget\Tabextension\MenuAction;
use Icinga\Web\Widget\Tabextension\OutputFormat;
use Icinga\Web\Widget\Tabextension\Tabextension;
use InvalidArgumentException;
use ipl\Html\BaseHtmlElement;
use ipl\Html\HtmlString;
Expand Down Expand Up @@ -172,4 +173,18 @@ public function count()
{
return $this->tabs->count();
}

/**
* Apply a Tabextension on $this->tabs object not on this class
*
* @param Tabextension $extension
*
* @return $this
*/
public function extend(Tabextension $extension)
{
$this->tabs->extend($extension);

return $this;
}
}

0 comments on commit 0067b9d

Please sign in to comment.