5 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
6 require_once(__DIR__ .
"/../../Base.php");
8 use \ILIAS\UI\Component as
C;
21 return new \ILIAS\UI\Implementation\Factory();
28 $group = $f->item()->group(
"group",
array(
29 $f->item()->standard(
"title1"),
30 $f->item()->standard(
"title2")
33 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Item\\Group", $group);
39 $c = $f->item()->group(
"group",
array(
40 $f->item()->standard(
"title1"),
41 $f->item()->standard(
"title2")
44 $this->assertEquals($c->getTitle(),
"group");
52 $f->item()->standard(
"title1"),
53 $f->item()->standard(
"title2")
56 $c = $f->item()->group(
"group", $items);
58 $this->assertEquals($c->getItems(), $items);
65 $actions = $f->dropdown()->standard(
array(
66 $f->button()->shy(
"ILIAS",
"https://www.ilias.de"),
67 $f->button()->shy(
"GitHub",
"https://www.github.com")
70 $f->item()->standard(
"title1"),
71 $f->item()->standard(
"title2")
74 $c = $f->item()->group(
"group", $items)->withActions($actions);
76 $this->assertEquals($c->getActions(), $actions);
85 $f->item()->standard(
"title1"),
86 $f->item()->standard(
"title2")
89 $c = $f->item()->group(
"group", $items);
94 <div
class=
"il-item-group">
96 <div
class=
"il-item-group-items">
97 <div
class=
"il-panel-listing-std-item-container"><div
class=
"il-item il-std-item ">
99 </div></div><div
class=
"il-panel-listing-std-item-container"><div
class=
"il-item il-std-item ">
113 $actions = $f->dropdown()->standard(
array(
114 $f->button()->shy(
"ILIAS",
"https://www.ilias.de"),
115 $f->button()->shy(
"GitHub",
"https://www.github.com")
118 $f->item()->standard(
"title1"),
119 $f->item()->standard(
"title2")
122 $c = $f->item()->group(
"group", $items)->withActions($actions);
127 <div
class=
"il-item-group">
128 <h4>group</h4><div
class=
"dropdown"><button
class=
"btn btn-default dropdown-toggle" type=
"button" data-toggle=
"dropdown" aria-haspopup=
"true" aria-expanded=
"false"> <span
class=
"caret"></span></button>
129 <ul
class=
"dropdown-menu">
130 <li><a
class=
"btn btn-link" href=
"https://www.ilias.de" data-action=
"https://www.ilias.de">
ILIAS</a></li>
131 <li><a
class=
"btn btn-link" href=
"https://www.github.com" data-action=
"https://www.github.com">GitHub</a></li>
134 <div
class=
"il-item-group-items">
135 <div
class=
"il-panel-listing-std-item-container"><div
class=
"il-item il-std-item ">
137 </div></div><div
class=
"il-panel-listing-std-item-container"><div
class=
"il-item il-std-item ">
test_render_with_actions()
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Provides common functionality for UI tests.
test_implements_factory_interface()
assertHTMLEquals($expected_html_as_string, $html_as_string)
Create styles array
The data for the language used.