views/dialog ================= .. js:class:: DialogView(args, viewArgs, baseArgs) :extends: BaseView This view is opened in a dialog. Usually within a :js:class:`MainView`. :param Object args: See :js:class:`BaseView`. :param Object viewArgs: See :js:class:`BaseView`. :param Object baseArgs: See :js:class:`BaseView`. .. js:attribute:: dialogExtraOpts :type: Object An object providing the base vue options for the underlying *DialogViewDialog*. .. js:attribute:: $content read-only :type: jQuery The jQuery object containing the node that is holding the views content. .. js:attribute:: menu read-only :type: MenuButton The vue instance representing the menu of this view. .. js:function:: isVisible() :return: Wether this view is visible. Always true. :rtype: Bool .. js:function:: isFocused() :return: Wether this view has focus. :rtype: Bool .. js:attribute:: icon :type: String The CSS class names assigned to the icon of the dialog. .. js:attribute:: label :type: String The label of the dialog, displayed as title .. js:function:: setLabel(label) Sets the label. For compatiblity with :js:class:`MainView`s :js:func:`setLabel`. :param String label: The label to be set. .. js:function:: setLoading(loading[, delay]) Behaves just like the normal setLoading with the only difference that you can provide a delay to the visual representation of loading (when not loading previously). It is inthendes to be used with low delays (such as 0.2s) to hold up the illusion of a very responsive UI. :param Bool loading: Wether to increase or decrease the internal loading semaphore. :param Number delay: The delay in seconds until the loading indicatior will be shown after it was not already.