.. _widgets-examples-waitwindow:

Пример использования AS.SERVICES.showWaitWindow/hideWaitWindow
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

.. raw:: html

    <iframe src="../../_static/html/forms/widgets/waitwindow.html" scrolling='no' height="200px" width="100%" style="border:1px solid grey;"></iframe>

Исходный код функции

.. code-block:: js

    AS.SERVICES.showWaitWindow = function () {
        $("#app-wait-div").show();
    };

    AS.SERVICES.hideWaitWindow = function () {
        $("#app-wait-div").hide();
    };


Полный исходный код

.. literalinclude:: ../../_static/html/forms/widgets/waitwindow.html
    :language: html
    :emphasize-lines: 115-121
    :encoding: utf-8
