4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=edge">
5 <meta name=
"viewport" content=
"width=device-width, initial-scale=1">
6 <meta name=
"description" content=
"">
7 <meta name=
"keywords" content=
" ">
8 <title>Dialogs - JavaScript API | WoltLab Suite
5.3 Documentation
</title>
10 <link rel=
"stylesheet" href=
"https://docs.woltlab.com/5.3/css/syntax.css">
11 <link rel=
"stylesheet" href=
"https://fonts.googleapis.com/css?family=Open+Sans:400,300,600">
12 <link rel=
"stylesheet" href=
"https://docs.woltlab.com/5.3/css/font-awesome.min.css">
13 <!--<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">-->
14 <link rel=
"stylesheet" href=
"https://docs.woltlab.com/5.3/css/modern-business.css">
15 <link rel=
"stylesheet" href=
"https://docs.woltlab.com/5.3/css/lavish-bootstrap.css">
16 <link rel=
"stylesheet" href=
"https://docs.woltlab.com/5.3/css/customstyles.css">
17 <link rel=
"stylesheet" href=
"https://docs.woltlab.com/5.3/css/theme-blue.css?v=3">
19 <script src=
"https://docs.woltlab.com/5.3/js/jquery.min.js"></script>
20 <script src=
"https://docs.woltlab.com/5.3/js/jquery.cookie.min.js"></script>
21 <script src=
"https://docs.woltlab.com/5.3/js/jquery.navgoco.min.js"></script>
22 <script src=
"https://docs.woltlab.com/5.3/js/bootstrap.min.js"></script>
23 <script src=
"https://docs.woltlab.com/5.3/js/anchor.min.js"></script>
24 <script src=
"https://docs.woltlab.com/5.3/js/toc.js"></script>
25 <script src=
"https://docs.woltlab.com/5.3/js/customscripts.js"></script>
27 <link rel=
"shortcut icon" href=
"https://docs.woltlab.com/5.3/images/favicon.ico">
29 <link rel=
"alternate" type=
"application/rss+xml" title=
"woltlab.github.io" href=
"https://docs.woltlab.com/5.3feed.xml">
32 $(document).ready(function() {
33 // Initialize navgoco with default options
34 $(
"#mysidebar").navgoco({
37 openClass: 'active', // open
38 save: false, // leave false or nav highlighting doesn't work right
50 $(
"#collapseAll").click(function(e) {
52 $(
"#mysidebar").navgoco('toggle', false);
55 $(
"#expandAll").click(function(e) {
57 $(
"#mysidebar").navgoco('toggle', true);
65 $('[
data-toggle=
"tooltip"]').tooltip()
73 <nav class=
"navbar navbar-inverse navbar-fixed-top">
74 <div class=
"container topnavlinks">
75 <div class=
"navbar-header">
76 <button type=
"button" class=
"navbar-toggle" data-toggle=
"collapse" data-target=
"#bs-example-navbar-collapse-1">
77 <span class=
"sr-only">Toggle navigation
</span>
78 <span class=
"icon-bar"></span>
79 <span class=
"icon-bar"></span>
80 <span class=
"icon-bar"></span>
82 <a class=
"fa fa-home fa-lg navbar-brand" href=
"index.html"> <span class=
"projectTitle"> WoltLab Suite
5.3 Documentation
</span></a>
84 <div class=
"collapse navbar-collapse" id=
"bs-example-navbar-collapse-1">
85 <ul class=
"nav navbar-nav navbar-right">
86 <!-- entries without drop-downs appear here -->
90 <li><a href=
"https://www.woltlab.com" target=
"_blank">woltlab.com
</a></li>
96 <li><a href=
"https://github.com/WoltLab/WCF/" target=
"_blank">Code on github.com
</a></li>
100 <!-- entries with drop-downs appear here -->
101 <!-- conditional logic to control which topnav appears for the audience defined in the configuration file.-->
104 <!--comment out this block if you want to hide search-->
107 <div id=
"search-demo-container">
108 <input type=
"text" id=
"search-input" placeholder=
"search...">
109 <ul id=
"results-container"></ul>
111 <script src=
"https://docs.woltlab.com/5.3/js/jekyll-search.js" type=
"text/javascript"></script>
112 <script type=
"text/javascript">
113 SimpleJekyllSearch.init({
114 searchInput: document.getElementById('search-input'),
115 resultsContainer: document.getElementById('results-container'),
116 dataSource: 'https://docs.woltlab.com/
5.3/search.json',
117 searchResultTemplate: '
<li><a href=
"{url}" title=
"Dialogs - JavaScript API">{title}
</a></li>',
118 noResultsText: 'No results found.',
132 <div class=
"container">
133 <div class=
"col-lg-12"> </div>
136 <div class=
"col-md-3">
140 <ul id=
"mysidebar" class=
"nav">
141 <li class=
"sidebarTitle">WoltLab Suite
5.3</li>
146 <a href=
"#">Getting Started
</a>
152 <li data-identifier=
"index"><a href=
"index.html">Introduction
</a></li>
161 <li data-identifier=
"getting-started_quick-start"><a href=
"getting-started_quick-start.html">Quick Start
</a></li>
171 <a href=
"#">PHP API
</a>
177 <li data-identifier=
"php_pages"><a href=
"php_pages.html">Pages
</a></li>
186 <li data-identifier=
"php_database-objects"><a href=
"php_database-objects.html">Database Objects
</a></li>
195 <li data-identifier=
"php_database-access"><a href=
"php_database-access.html">Database Access
</a></li>
204 <li data-identifier=
"php_exceptions"><a href=
"php_exceptions.html">Exceptions
</a></li>
213 <li class=
"subfolders">
219 <li data-identifier=
"php_api_caches"><a href=
"php_api_caches.html">Caches
</a></li>
224 <li data-identifier=
"php_api_comments"><a href=
"php_api_comments.html">Comments
</a></li>
229 <li data-identifier=
"php_api_cronjobs"><a href=
"php_api_cronjobs.html">Cronjobs
</a></li>
234 <li data-identifier=
"php_api_events"><a href=
"php_api_events.html">Events
</a></li>
239 <li data-identifier=
"php_api_form_builder"><a href=
"php_api_form_builder.html">Form Builder
</a></li>
244 <li data-identifier=
"php_api_package_installation_plugins"><a href=
"php_api_package_installation_plugins.html">Package Installation Plugins
</a></li>
249 <li data-identifier=
"php_api_user_activity_points"><a href=
"php_api_user_activity_points.html">User Activity Points
</a></li>
254 <li data-identifier=
"php_api_user_notifications"><a href=
"php_api_user_notifications.html">User Notifications
</a></li>
259 <li data-identifier=
"php_api_sitemaps"><a href=
"php_api_sitemaps.html">Sitemaps
</a></li>
269 <li data-identifier=
"php_code-style"><a href=
"php_code-style.html">Code Style
</a></li>
278 <li data-identifier=
"php_apps"><a href=
"php_apps.html">Apps
</a></li>
287 <li data-identifier=
"php_gdpr"><a href=
"php_gdpr.html">GDPR
</a></li>
297 <a href=
"#">Languages, Templates & CSS
</a>
303 <li data-identifier=
"view_languages"><a href=
"view_languages.html">Languages
</a></li>
312 <li data-identifier=
"view_templates"><a href=
"view_templates.html">Templates
</a></li>
321 <li data-identifier=
"view_css"><a href=
"view_css.html">CSS
</a></li>
331 <a href=
"#">JavaScript API
</a>
337 <li data-identifier=
"javascript_general-usage"><a href=
"javascript_general-usage.html">General Usage
</a></li>
346 <li class=
"subfolders">
347 <a href=
"#">New API
</a>
352 <li data-identifier=
"javascript_new-api_writing-a-module"><a href=
"javascript_new-api_writing-a-module.html">Writing a module
</a></li>
357 <li data-identifier=
"javascript_new-api_data-structures"><a href=
"javascript_new-api_data-structures.html">Data Structures
</a></li>
362 <li data-identifier=
"javascript_new-api_core"><a href=
"javascript_new-api_core.html">Core Functions
</a></li>
367 <li data-identifier=
"javascript_new-api_dom"><a href=
"javascript_new-api_dom.html">DOM
</a></li>
372 <li data-identifier=
"javascript_new-api_events"><a href=
"javascript_new-api_events.html">Event Handling
</a></li>
377 <li data-identifier=
"javascript_new-api_ajax"><a href=
"javascript_new-api_ajax.html">Ajax
</a></li>
382 <li class=
"active" data-identifier=
"javascript_new-api_dialogs"><a href=
"javascript_new-api_dialogs.html">Dialogs
</a></li>
387 <li data-identifier=
"javascript_new-api_browser"><a href=
"javascript_new-api_browser.html">Browser and Screen Sizes
</a></li>
392 <li data-identifier=
"javascript_new-api_ui"><a href=
"javascript_new-api_ui.html">User Interface
</a></li>
402 <li data-identifier=
"javascript_legacy-api"><a href=
"javascript_legacy-api.html">Legacy API
</a></li>
411 <li data-identifier=
"javascript_helper-functions"><a href=
"javascript_helper-functions.html">Helper Functions
</a></li>
420 <li data-identifier=
"javascript_code-snippets"><a href=
"javascript_code-snippets.html">Code Snippets
</a></li>
430 <a href=
"#">Package Components
</a>
436 <li data-identifier=
"package_package-xml"><a href=
"package_package-xml.html">package.xml
</a></li>
445 <li data-identifier=
"package_pip"><a href=
"package_pip.html">PIPs
</a></li>
455 <a href=
"#">Migration
</a>
461 <li class=
"subfolders">
462 <a href=
"#">Migrating from WSC
5.2</a>
467 <li data-identifier=
"migration_wsc-52_php"><a href=
"migration_wsc-52_php.html">PHP API
</a></li>
472 <li data-identifier=
"migration_wsc-52_templates"><a href=
"migration_wsc-52_templates.html">Templates and Languages
</a></li>
477 <li data-identifier=
"migration_wsc-52_libraries"><a href=
"migration_wsc-52_libraries.html">Third Party Libraries
</a></li>
483 <li class=
"subfolders">
484 <a href=
"#">Migrating from WSC
3.1</a>
489 <li data-identifier=
"migration_wsc-31_php"><a href=
"migration_wsc-31_php.html">PHP API
</a></li>
495 <li class=
"subfolders">
496 <a href=
"#">Migrating from WSC
3.0</a>
501 <li data-identifier=
"migration_wsc-30_php"><a href=
"migration_wsc-30_php.html">PHP API
</a></li>
506 <li data-identifier=
"migration_wsc-30_javascript"><a href=
"migration_wsc-30_javascript.html">JavaScript API
</a></li>
511 <li data-identifier=
"migration_wsc-30_templates"><a href=
"migration_wsc-30_templates.html">Templates
</a></li>
516 <li data-identifier=
"migration_wsc-30_css"><a href=
"migration_wsc-30_css.html">CSS
</a></li>
521 <li data-identifier=
"migration_wsc-30_package"><a href=
"migration_wsc-30_package.html">Package Components
</a></li>
527 <li class=
"subfolders">
528 <a href=
"#">Migrating from WCF
2.1</a>
533 <li data-identifier=
"migration_wcf-21_php"><a href=
"migration_wcf-21_php.html">PHP API
</a></li>
538 <li data-identifier=
"migration_wcf-21_templates"><a href=
"migration_wcf-21_templates.html">Templates
</a></li>
543 <li data-identifier=
"migration_wcf-21_css"><a href=
"migration_wcf-21_css.html">CSS
</a></li>
548 <li data-identifier=
"migration_wcf-21_package"><a href=
"migration_wcf-21_package.html">Package Components
</a></li>
559 <a href=
"#">Tutorials
</a>
565 <li data-identifier=
"tutorial_tutorial-series"><a href=
"tutorial_tutorial-series.html">Tutorial Series
</a></li>
579 var sidebar = $('#mysidebar');
580 var item = sidebar.find('.active');
581 if (item.length ===
0) {
584 sidebar.find('li[
data-identifier=
"' + parent + '"]').addClass('active');
588 sidebar.find(
".active").parents('li').toggleClass(
"active");
594 <div class=
"col-md-9">
595 <div class=
"post-header">
596 <h1 class=
"post-title-main">Dialogs - JavaScript API
</h1>
601 <div class=
"post-content">
607 <!-- this handles the automatic toc. use ## for subheads to auto-generate the on-page minitoc. if you use html tags, you must supply an ID for the heading element in order for it to appear in the minitoc. -->
609 $( document ).ready(function() {
610 // Handler for .ready() called.
612 $('#toc').toc({ minimumHeaders:
0, listType: 'ul', showSpeed:
0, headers: 'h2,h3,h4' });
614 /* this offset helps account for the space taken up by the floating toolbar. */
615 $('#toc').on('click', 'a', function() {
616 var target = $(this.getAttribute('href'))
617 , scroll_target = target.offset().top
619 $(window).scrollTop(scroll_target -
10);
630 <h2 id=
"introduction">Introduction
</h2>
632 <p>Dialogs are full screen overlays that cover the currently visible window area
633 using a semi-opague backdrop and a prominently placed dialog window in the
634 foreground. They shift the attention away from the original content towards the
635 dialog and usually contain additional details and/or dedicated form inputs.
</p>
637 <h2 id=
"_dialogsetup"><code class=
"language-plaintext highlighter-rouge">_dialogSetup()
</code></h2>
639 <p>The lazy initialization is performed upon the first invocation from the callee,
640 using the magic
<code class=
"language-plaintext highlighter-rouge">_dialogSetup()
</code> method to retrieve the basic configuration for
641 the dialog construction and any event callbacks.
</p>
643 <div class=
"language-js highlighter-rouge"><div class=
"highlight"><pre class=
"highlight"><code><span class=
"c1">// App/Foo.js
</span>
644 <span class=
"nx">define
</span><span class=
"p">([
</span><span class=
"dl">"</span><span class="s2
">Ui/Dialog</span><span class="dl
">"</span><span class=
"p">],
</span> <span class=
"kd">function
</span><span class=
"p">(
</span><span class=
"nx">UiDialog
</span><span class=
"p">)
</span> <span class=
"p">{
</span>
645 <span class=
"dl">"</span><span class="s2
">use strict</span><span class="dl
">"</span><span class=
"p">;
</span>
647 <span class=
"kd">function
</span> <span class=
"nx">Foo
</span><span class=
"p">()
</span> <span class=
"p">{};
</span>
648 <span class=
"nx">Foo
</span><span class=
"p">.
</span><span class=
"nx">prototype
</span> <span class=
"o">=
</span> <span class=
"p">{
</span>
649 <span class=
"na">bar
</span><span class=
"p">:
</span> <span class=
"kd">function
</span><span class=
"p">()
</span> <span class=
"p">{
</span>
650 <span class=
"c1">// this will open the dialog constructed by _dialogSetup
</span>
651 <span class=
"nx">UiDialog
</span><span class=
"p">.
</span><span class=
"nx">open
</span><span class=
"p">(
</span><span class=
"k">this
</span><span class=
"p">);
</span>
652 <span class=
"p">},
</span>
654 <span class=
"na">_dialogSetup
</span><span class=
"p">:
</span> <span class=
"kd">function
</span><span class=
"p">()
</span> <span class=
"p">{
</span>
655 <span class=
"k">return
</span> <span class=
"p">{
</span>
656 <span class=
"na">id
</span><span class=
"p">:
</span> <span class=
"dl">"</span><span class="s2
">myDialog</span><span class="dl
">"</span><span class=
"p">,
</span>
657 <span class=
"na">source
</span><span class=
"p">:
</span> <span class=
"dl">"</span><span class="s2
"><p>Hello World!</p></span><span class="dl
">"</span><span class=
"p">,
</span>
658 <span class=
"na">options
</span><span class=
"p">:
</span> <span class=
"p">{
</span>
659 <span class=
"na">onClose
</span><span class=
"p">:
</span> <span class=
"kd">function
</span><span class=
"p">()
</span> <span class=
"p">{
</span>
660 <span class=
"c1">// the fancy dialog was closed!
</span>
661 <span class=
"p">}
</span>
662 <span class=
"p">}
</span>
663 <span class=
"p">}
</span>
664 <span class=
"p">}
</span>
665 <span class=
"p">};
</span>
667 <span class=
"k">return
</span> <span class=
"nx">Foo
</span><span class=
"p">;
</span>
668 <span class=
"p">});
</span>
669 </code></pre></div></div>
671 <h3 id=
"id-string"><code class=
"language-plaintext highlighter-rouge">id: string
</code></h3>
673 <p>The
<code class=
"language-plaintext highlighter-rouge">id
</code> is used to identify a dialog on runtime, but is also part of the first-
674 time setup when the dialog has not been opened before. If
<code class=
"language-plaintext highlighter-rouge">source
</code> is
<code class=
"language-plaintext highlighter-rouge">undefined
</code>,
675 the module attempts to construct the dialog using an element with the same id.
</p>
677 <h3 id=
"source-any"><code class=
"language-plaintext highlighter-rouge">source: any
</code></h3>
679 <p>There are six different types of value that
<code class=
"language-plaintext highlighter-rouge">source
</code> does allow and each of them
680 changes how the initial dialog is constructed:
</p>
683 <li><code class=
"language-plaintext highlighter-rouge">undefined
</code><br />
684 The dialog exists already and the value of
<code class=
"language-plaintext highlighter-rouge">id
</code> should be used to identify the
686 <li><code class=
"language-plaintext highlighter-rouge">null
</code><br />
687 The HTML is provided using the second argument of
<code class=
"language-plaintext highlighter-rouge">.open()
</code>.
</li>
688 <li><code class=
"language-plaintext highlighter-rouge">() =
> void
</code><br />
689 If the
<code class=
"language-plaintext highlighter-rouge">source
</code> is a function, it is executed and is expected to start the
690 dialog initialization itself.
</li>
691 <li><code class=
"language-plaintext highlighter-rouge">Object
</code><br />
692 Plain objects are interpreted as parameters for an Ajax request, in particular
693 <code class=
"language-plaintext highlighter-rouge">source.data
</code> will be used to issue the request. It is possible to specify the
694 key
<code class=
"language-plaintext highlighter-rouge">source.after
</code> as a callback
<code class=
"language-plaintext highlighter-rouge">(content: Element, responseData: Object) =
> void
</code>
695 that is executed after the dialog was opened.
</li>
696 <li><code class=
"language-plaintext highlighter-rouge">string
</code><br />
697 The string is expected to be plain HTML that should be used to construct the
699 <li><code class=
"language-plaintext highlighter-rouge">DocumentFragment
</code><br />
700 A new container
<code class=
"language-plaintext highlighter-rouge"><div
></code> with the provided
<code class=
"language-plaintext highlighter-rouge">id
</code> is created and the contents of
701 the
<code class=
"language-plaintext highlighter-rouge">DocumentFragment
</code> is appended to it. This container is then used for the
705 <h3 id=
"options-object"><code class=
"language-plaintext highlighter-rouge">options: Object
</code></h3>
707 <p>All configuration options and callbacks are handled through this object.
</p>
709 <h4 id=
"optionsbackdropcloseonclick-boolean"><code class=
"language-plaintext highlighter-rouge">options.backdropCloseOnClick: boolean
</code></h4>
711 <p><em>Defaults to
<code class=
"language-plaintext highlighter-rouge">true
</code>.
</em></p>
713 <p>Clicks on the dialog backdrop will close the top-most dialog. This option will
714 be force-disabled if the option
<code class=
"language-plaintext highlighter-rouge">closeable
</code> is set to
<code class=
"language-plaintext highlighter-rouge">false
</code>.
</p>
716 <h4 id=
"optionsclosable-boolean"><code class=
"language-plaintext highlighter-rouge">options.closable: boolean
</code></h4>
718 <p><em>Defaults to
<code class=
"language-plaintext highlighter-rouge">true
</code>.
</em></p>
720 <p>Enables the close button in the dialog title, when disabled the dialog can be
721 closed through the
<code class=
"language-plaintext highlighter-rouge">.close()
</code> API call only.
</p>
723 <h4 id=
"optionsclosebuttonlabel-string"><code class=
"language-plaintext highlighter-rouge">options.closeButtonLabel: string
</code></h4>
725 <p><em>Defaults to
<code class=
"language-plaintext highlighter-rouge">Language.get(
"wcf.global.button.close")
</code>.
</em></p>
727 <p>The phrase that is displayed in the tooltip for the close button.
</p>
729 <h4 id=
"optionscloseconfirmmessage-string"><code class=
"language-plaintext highlighter-rouge">options.closeConfirmMessage: string
</code></h4>
731 <p><em>Defaults to
<code class=
"language-plaintext highlighter-rouge">""</code>.
</em></p>
733 <p>Shows a
<a href=
"javascript_new-api_ui.html">confirmation dialog
</a> using the configured message
734 before closing the dialog. The dialog will not be closed if the dialog is
735 rejected by the user.
</p>
737 <h4 id=
"optionstitle-string"><code class=
"language-plaintext highlighter-rouge">options.title: string
</code></h4>
739 <p><em>Defaults to
<code class=
"language-plaintext highlighter-rouge">""</code>.
</em></p>
741 <p>The phrase that is displayed in the dialog title.
</p>
743 <h4 id=
"optionsonbeforeclose-id-string--void"><code class=
"language-plaintext highlighter-rouge">options.onBeforeClose: (id: string) =
> void
</code></h4>
745 <p><em>Defaults to
<code class=
"language-plaintext highlighter-rouge">null
</code>.
</em></p>
747 <p>The callback is executed when the user clicks on the close button or, if enabled,
748 on the backdrop. The callback is responsible to close the dialog by itself, the
749 default close behavior is automatically prevented.
</p>
751 <h4 id=
"optionsonclose-id-string--void"><code class=
"language-plaintext highlighter-rouge">options.onClose: (id: string) =
> void
</code></h4>
753 <p><em>Defaults to
<code class=
"language-plaintext highlighter-rouge">null
</code>.
</em></p>
755 <p>The callback is notified once the dialog is about to be closed, but is still
756 visible at this point. It is not possible to abort the close operation at this
759 <h4 id=
"optionsonshow-content-element--void"><code class=
"language-plaintext highlighter-rouge">options.onShow: (content: Element) =
> void
</code></h4>
761 <p><em>Defaults to
<code class=
"language-plaintext highlighter-rouge">null
</code>.
</em></p>
763 <p>Receives the dialog content element as its only argument, allowing the callback
764 to modify the DOM or to register event listeners before the dialog is presented
765 to the user. The dialog is already visible at call time, but the dialog has not
766 been finalized yet.
</p>
768 <h2 id=
"settitleid-string--object-title-string"><code class=
"language-plaintext highlighter-rouge">setTitle(id: string | Object, title: string)
</code></h2>
770 <p>Sets the title of a dialog.
</p>
772 <h2 id=
"setcallbackid-string--object-key-string-value-data-any--void--null"><code class=
"language-plaintext highlighter-rouge">setCallback(id: string | Object, key: string, value: (data: any) =
> void | null)
</code></h2>
774 <p>Sets a callback function after the dialog initialization, the special value
775 <code class=
"language-plaintext highlighter-rouge">null
</code> will remove a previously set callback. Valid values for
<code class=
"language-plaintext highlighter-rouge">key
</code> are
776 <code class=
"language-plaintext highlighter-rouge">onBeforeClose
</code>,
<code class=
"language-plaintext highlighter-rouge">onClose
</code> and
<code class=
"language-plaintext highlighter-rouge">onShow
</code>.
</p>
778 <h2 id=
"rebuildid-string--object"><code class=
"language-plaintext highlighter-rouge">rebuild(id: string | Object)
</code></h2>
780 <p>Rebuilds a dialog by performing various calculations on the maximum dialog
781 height in regards to the overflow handling and adjustments for embedded forms.
782 This method is automatically invoked whenever a dialog is shown, after invoking
783 the
<code class=
"language-plaintext highlighter-rouge">options.onShow
</code> callback.
</p>
785 <h2 id=
"closeid-string--object"><code class=
"language-plaintext highlighter-rouge">close(id: string | Object)
</code></h2>
787 <p>Closes an open dialog, this will neither trigger a confirmation dialog, nor does
788 it invoke the
<code class=
"language-plaintext highlighter-rouge">options.onBeforeClose
</code> callback. The
<code class=
"language-plaintext highlighter-rouge">options.onClose
</code> callback
789 will always be invoked, but it cannot abort the close operation.
</p>
791 <h2 id=
"getdialogid-string--object-object"><code class=
"language-plaintext highlighter-rouge">getDialog(id: string | Object): Object
</code></h2>
793 <div class=
"bs-callout bs-callout-warning">This method returns an internal data object by reference, any modifications made do have an effect on the dialogs behavior and in particular no validation is performed on the modification. It is strongly recommended to use the
<code class=
"language-plaintext highlighter-rouge">.set*()
</code> methods only.
</div>
795 <p>Returns the internal dialog data that is attached to a dialog. The most important
796 key is
<code class=
"language-plaintext highlighter-rouge">.content
</code> which holds a reference to the dialog’s inner content element.
</p>
798 <h2 id=
"isopenid-string--object-boolean"><code class=
"language-plaintext highlighter-rouge">isOpen(id: string | Object): boolean
</code></h2>
800 <p>Returns true if the dialog exists and is open.
</p>
816 <div class=
"footerBox">
817 <div class=
"container">
818 <div class=
"footerBoxLeft">
820 <a target=
"_blank" href=
"https://github.com/woltlab/woltlab.github.io/blob/master/pages/javascript/javascript_new-api_dialogs.md" class=
"btn btn-default githubEditButton no_icon" role=
"button"><i class=
"fa fa-github fa-lg"></i> Edit on GitHub
</a>
821 <p>Site last generated: Mar
5,
2021</p>
823 <div class=
"footerBoxRight">
824 <a class=
"no_icon" href=
"https://www.woltlab.com"><img src=
"https://docs.woltlab.com/5.3/images/woltlab-black.png" srcset=
"https://docs.woltlab.com/5.3/images/woltlab-black@2x.png 2x" height=
"40" width=
"204" alt=
""></a>
829 <div class=
"pageFooter">
830 <div class=
"container">
831 © 2001 ‐
2021 <a class=
"no_icon" href=
"https://www.woltlab.com">WoltLab GmbH
</a>. All rights reserved. |
<a class=
"no_icon" href=
"https://www.woltlab.com/legal-notice/">Legal Notice
</a> |
<a class=
"no_icon" href=
"https://www.woltlab.com/privacy-policy/">Privacy Policy
</a>