3 declare(strict_types=1);
21 require_once(__DIR__ .
"/../../../../libs/composer/vendor/autoload.php");
22 require_once(__DIR__ .
"/../../Base.php");
34 return new I\Component\Panel\Listing\Factory();
41 $std_list =
$f->standard(
"List Title", array(
51 $this->assertInstanceOf(
"ILIAS\\UI\\Component\\Panel\\Listing\\Standard", $std_list);
68 $c =
$f->standard(
"title", $groups);
70 $this->assertEquals(
"title",
$c->getTitle());
71 $this->assertEquals($groups,
$c->getItemGroups());
78 $actions =
new I\Component\Dropdown\Standard(array(
85 $c =
$f->standard(
"title", $groups)
86 ->withActions($actions);
88 $this->assertEquals($actions,
$c->getActions());
106 $c =
$f->standard(
"title", $groups);
108 $html = $r->render(
$c);
111 <div
class=
"panel il-panel-listing-std-container clearfix">
113 <div
class=
"il-item-group">
115 <div
class=
"il-item-group-items">
117 <li
class=
"il-std-item-container">
118 <div
class=
"il-item il-std-item ">
119 <div
class=
"il-item-title">title1</div>
122 <li
class=
"il-std-item-container">
123 <div
class=
"il-item il-std-item ">
124 <div
class=
"il-item-title">title2</div>
130 <div
class=
"il-item-group">
132 <div
class=
"il-item-group-items">
134 <li
class=
"il-std-item-container">
135 <div
class=
"il-item il-std-item ">
136 <div
class=
"il-item-title">title3</div>
157 $actions =
new I\Component\Dropdown\Standard(array(
162 $c =
$f->standard(
"title", $groups)
163 ->withActions($actions);
165 $html = $r->render(
$c);
168 <div
class=
"panel il-panel-listing-std-container clearfix">
169 <h2>title</h2><div
class=
"dropdown"><button
class=
"btn btn-default dropdown-toggle" type=
"button" data-toggle=
"dropdown" id=
"id_3" aria-label=
"actions" aria-haspopup=
"true" aria-expanded=
"false" aria-controls=
"id_3_menu"> <span
class=
"caret"></span></button>
170 <ul
id=
"id_3_menu" class=
"dropdown-menu">
171 <li><button
class=
"btn btn-link" data-action=
"https://www.ilias.de" id=
"id_1">
ILIAS</button></li>
172 <li><button
class=
"btn btn-link" data-action=
"https://www.github.com" id=
"id_2">GitHub</button></li>
getDefaultRenderer(JavaScriptBinding $js_binding=null, array $with_stub_renderings=[])
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider .
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_render_with_actions()
test_implements_factory_interface()
brutallyTrimHTML(string $html)
A more radical version of normalizeHTML.
assertHTMLEquals(string $expected_html_as_string, string $html_as_string)
Provides common functionality for UI tests.
test_get_title_get_groups()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...