diff options
Diffstat (limited to '')
-rw-r--r-- | library/Icingadb/Widget/EmptyState.php | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/library/Icingadb/Widget/EmptyState.php b/library/Icingadb/Widget/EmptyState.php new file mode 100644 index 0000000..4800244 --- /dev/null +++ b/library/Icingadb/Widget/EmptyState.php @@ -0,0 +1,27 @@ +<?php + +/* Icinga DB Web | (c) 2020 Icinga GmbH | GPLv2 */ + +namespace Icinga\Module\Icingadb\Widget; + +use ipl\Html\BaseHtmlElement; + +class EmptyState extends BaseHtmlElement +{ + /** @var mixed Content */ + protected $content; + + protected $tag = 'div'; + + protected $defaultAttributes = ['class' => 'empty-state']; + + public function __construct($content) + { + $this->content = $content; + } + + protected function assemble() + { + $this->add($this->content); + } +} |