blob: ec326ccd030a2a1aaf44b38a8524f4934de674c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
namespace Icinga\Module\Director\Web\Widget;
use ipl\Html\Attributes;
use ipl\Html\BaseHtmlElement;
use ipl\Html\Html;
use ipl\Html\ValidHtml;
class ListItem extends BaseHtmlElement
{
protected $contentSeparator = "\n";
/**
* @param ValidHtml|array|string $content
* @param Attributes|array $attributes
*
* @return $this
*/
public function addItem($content, $attributes = null)
{
return $this->add(
Html::tag('li', $attributes, $content)
);
}
}
|