3 require_once(__DIR__ .
'/ModalBase.php');
5 use \ILIAS\UI\Component as
C;
18 $this->assertEquals([$page], $lightbox->getPages());
25 $this->assertEquals($pages, $lightbox->getPages());
30 $image = $this->
getUIFactory()->image()->responsive(
'src/fake/image.jpg',
'description');
34 $this->assertEquals($expected, $actual);
45 <div
class=
"modal fade il-modal-lightbox" tabindex=
"-1" role=
"dialog" id=
"id_1">
46 <div
class=
"modal-dialog modal-lg" role=
"document">
47 <div
class=
"modal-content il-modal-lightbox-page">
48 <div
class=
"modal-header">
49 <button type=
"button" class=
"close" data-dismiss=
"modal" aria-label=
"Close"><span aria-hidden=
"true">×</span></button>
50 <h4
class=
"modal-title">title</h4>
52 <div
class=
"modal-body">
53 <div
id=
"id_1_carousel" class=
"carousel slide" data-ride=
"carousel" data-interval=
"false">
57 <div
class=
"carousel-inner" role=
"listbox">
59 <div
class=
"item active" data-title=
"title">
63 <img src=
"src/fake/image.jpg" class=
"img-responsive" alt=
"description" />
65 <div
class=
"carousel-caption">
81 $(
'#id_1').on(
'shown.bs.modal',
function() {
82 $(
'.modal-backdrop.in').css(
'opacity',
'0.9');
84 $(
'#id_1_carousel').on(
'slid.bs.carousel',
function() {
85 var title = $(
this).find(
'.carousel-inner .item.active').attr(
'data-title');
86 $(
'#id_1').find(
'.modal-title').text(title);
98 public function getTitle()
103 public function getDescription()
105 return 'description';
108 public function getComponent()
getDefaultRenderer(JavaScriptBinding $js_binding=null)
Base class for modal tests.
Tests on implementation for the lightbox modal.