API Docs for:
Show:

UIApp

Extends UI
Defined in: js/uiapp.js:1
Module: UI

Summary

The UIApp class is the UI representation of an app

Constructor

UIApp

Defined in js/uiapp.js:1

Syntax

UIApp

()

Summary

Item Index

Properties

Methods

create

Defined in js/uiloading.js:74

Syntax

create

() Zepto private

Summary

Create and add the loading indicator's elements to the DOM

Returns:

Zepto:

Zeptified element

hide

Inherited from UI: js/ui.js:72

Syntax

hide

() UI private

Summary

Hides element from view

Returns:

UI:

Example:

m.app.ui.hide();

loading

Defined in js/uiloading.js:33

Syntax

loading

(
  • [show]
)
Boolean

Summary

Show/Hide the loading indicator

Parameters:

  • [show] Boolean optional

    Show or hide the loading indicator

Returns:

Boolean:

Example:

m.app.ui.loading();
m.app.ui.loading(true);

show

Inherited from UI: js/ui.js:59

Syntax

show

() UI private

Summary

Shows element (not necesarily, since the element's parent might be hidden or out of view)

Returns:

UI:

Example:

m.app.ui.show();

Properties

$el

Inherited from UI: js/ui.js:46

Syntax

$el

Unknown

Summary

Zepto/jQuery object for DOM element

Example:

$appDOMElement = m.app.ui.$el;
$appDOMElement.on("tap", function() {
    console.log("Header was tapped.");
});

el

Inherited from UI: js/ui.js:33

Syntax

el

Unknown

Summary

DOM element

Example:

appDOMElement = m.app.ui.el;
appDOMElement.addEventListener("touchend", function() {
    console.log("Header was touched.");
});