29 $this->lng = $DIC->language();
30 $this->
ui = $DIC->ui();
45 $modal =
$factory->modal()->roundtrip($title, [$mess]);
47 $b1 =
$factory->button()->standard($this->lng->txt(
"no"),
"")
51 :
"window.location.href='$export_cmd'";
52 return "document.querySelector('#$id').addEventListener('click', (e) => { 53 $('#$id').closest('.modal-content').find('button.close').click(); 57 $b2 =
$factory->button()->standard($this->lng->txt(
"yes"),
"")
60 ? $export_with_comments_cmd
61 :
"window.location.href='$export_with_comments_cmd'";
62 return "document.querySelector('#$id').addEventListener('click', (e) => { 63 $('#$id').closest('.modal-content').find('button.close').click(); 68 $modal = $modal->withActionButtons([$b1, $b2]);
getCommentIncludeModalDialog($title, $message, $export_cmd, $export_with_comments_cmd, $js=false)
__construct()
Constructor.
withAdditionalOnLoadCode(\Closure $binder)
Helper UI class for notes/comments handling in (HTML) exports.