phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
HtmlIconMenu.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\html\collections\menus
;
4
5
use
Ajax\bootstrap\html\HtmlLink
;
6
use
Ajax\semantic\html\elements\HtmlIcon
;
7
14
class
HtmlIconMenu
extends
HtmlMenu
{
15
16
21
public
function
__construct
(
$identifier
, $items=array()){
22
parent::__construct(
$identifier
, $items);
23
$this->
addToProperty
(
"class"
,
"icon"
);
24
}
25
26
31
protected
function
createItem
($value) {
32
$count=\sizeof($this->content);
33
$value=
new
HtmlIcon
(
"icon-"
.$count, $value);
34
$itemO=
new
HtmlLink
(
"item-"
.$count,
""
,$value);
35
return
$itemO->setClass(
"item"
);
36
}
37
}
Ajax\bootstrap\html\HtmlLink
Definition
HtmlLink.php:9
Ajax\common\html\BaseWidget\$identifier
$identifier
Definition
BaseWidget.php:14
Ajax\semantic\html\base\traits\BaseTrait\addToProperty
addToProperty($name, $value, $separator=" ")
Ajax\semantic\html\collections\menus\HtmlIconMenu
Semantic Menu component with only icons.
Definition
HtmlIconMenu.php:14
Ajax\semantic\html\collections\menus\HtmlIconMenu\createItem
createItem($value)
The item factory.HtmlCollection::createItem()
Definition
HtmlIconMenu.php:31
Ajax\semantic\html\collections\menus\HtmlIconMenu\__construct
__construct( $identifier, $items=array())
Definition
HtmlIconMenu.php:21
Ajax\semantic\html\collections\menus\HtmlMenu
Semantic Menu component.
Definition
HtmlMenu.php:29
Ajax\semantic\html\elements\HtmlIcon
Semantic Icon component.
Definition
HtmlIcon.php:14
Ajax\semantic\html\collections\menus
Definition
HtmlAccordionMenu.php:3
Ajax
semantic
html
collections
menus
HtmlIconMenu.php
Generated on Sun Dec 10 2023 16:16:05 for
phpMv-UI
by
doxygen
1.9.8