views/dialog

class DialogView(args, viewArgs, baseArgs)
Extends:BaseView

This view is opened in a dialog. Usually within a MainView().

Arguments:
dialogExtraOpts
Type:Object

An object providing the base vue options for the underlying DialogViewDialog.

read-only$content
Type:jQuery

The jQuery object containing the node that is holding the views content.

Type:MenuButton

The vue instance representing the menu of this view.

isVisible()
Returns:Wether this view is visible. Always true.
Return type:Bool
isFocused()
Returns:Wether this view has focus.
Return type:Bool
icon
Type:String

The CSS class names assigned to the icon of the dialog.

label
Type:String

The label of the dialog, displayed as title

setLabel(label)

Sets the label. For compatiblity with MainView`s :js:func:`setLabel().

Arguments:
  • label (String) – The label to be set.
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.

Arguments:
  • loading (Bool) – Wether to increase or decrease the internal loading semaphore.
  • delay (Number) – The delay in seconds until the loading indicatior will be shown after it was not already.