Class M.LoaderView
Extends
M.View.
M.LoaderView is the prototype for a loader a.k.a. activity indicator. This very simple
view can be used to show the user that something is happening, e.g. while the application
is waiting for a request to return some data.
Defined in: loader.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Field Attributes | Field Name and Description |
---|---|
This property can be used to specify the default title of a loader.
|
|
This property states whether the loader has already been initialized or not.
|
|
This property counts the loader calls to show
|
|
The type of this object.
|
- Fields borrowed from class M.View:
- childViews, computedValue, contentBinding, contentBindingReverse, cssClass, cssClassOnError, cssClassOnInit, cssStyle, events, hasFocus, html, id, isInline, isView, modelId, parentView, recommendedEvents, triggerActionOnChange, triggerActionOnEnter, triggerActionOnKeyUp, value
Method Attributes | Method Name and Description |
---|---|
changeTitle(title)
This method changes the current title.
|
|
hide(force)
This method hides the loader.
|
|
show(title)
This method shows the default loader.
|
- Methods borrowed from class M.View:
- addCssClass, attachToObservable, clearHtml, clearValue, clearValues, computeValue, contentDidChange, delegateValueUpdate, design, getChildViewsAsArray, getIds, getValue, getValues, gotFocus, lostFocus, nl2br, registerEvents, removeCssClass, removeCssProperty, renderUpdate, secure, setCssProperty, setValueFromDOM, style, tab2space, theme, themeChildViews
- Methods borrowed from class M.Object:
- bindToCaller, create, destroy, extend, get, include, set
Field Detail
{String}
defaultTitle
This property can be used to specify the default title of a loader.
{Boolean}
isInitialized
This property states whether the loader has already been initialized or not.
{Number}
refCount
This property counts the loader calls to show
{String}
type
The type of this object.
Method Detail
changeTitle(title)
This method changes the current title.
- Parameters:
- {String} title
- The title for this loader.
hide(force)
This method hides the loader.
- Parameters:
- {Boolean} force
- Determines whether to force the hide of the loader.
show(title)
This method shows the default loader. You can specify the displayed label with the
title parameter.
- Parameters:
- {String} title
- The title for this loader.