28 protected string $id =
"";
46 public function setId(
string $a_val): void
58 $this->heading = $a_val;
67 public function setBody(
string $a_val): void
82 public function setType(
string $a_val): void
94 $this->buttons[] = $but;
108 $tpl =
new ilTemplate(
"tpl.modal.html",
true,
true,
"Services/UIComponent/Modal");
112 $tpl->setCurrentBlock(
"button");
113 $tpl->setVariable(
"BUTTON",
$b->render());
114 $tpl->parseCurrentBlock();
116 $tpl->setCurrentBlock(
"footer");
117 $tpl->parseCurrentBlock();
122 $tpl->setVariable(
"MOD_ID", $this->
getId());
127 $tpl->setVariable(
"CLASS",
"modal-lg");
131 $tpl->setVariable(
"CLASS",
"modal-sm");
144 $tpl->addJavaScript(
"./Services/UIComponent/Modal/js/Modal.js");
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setType(string $a_val)
Set type.
setHeading(string $a_val)
addButton(ilButtonBase $but)
static initJS(ilGlobalTemplateInterface $a_main_tpl=null)
special template class to simplify handling of ITX/PEAR
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl