Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
70 lines (69 sloc) 3.48 KB
<!DOCTYPE html>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="|Raleway:400,700|Roboto:300,400,500,600,900," rel="stylesheet">
<link rel="stylesheet" href="">
<link rel="stylesheet" href="../base/reset.css">
<link rel="stylesheet" href="../base/mobileui.css">
<link rel="stylesheet" href="../base/colors.css">
<link rel="stylesheet" href="../base/icons.css">
<link rel="stylesheet" href="../header/style.css">
<link rel="stylesheet" href="../button/style.css">
<link rel="stylesheet" href="../list/style.css">
<link rel="stylesheet" href="../cover/style.css">
<link rel="stylesheet" href="../alert/style.css">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="../assets/css/master.css">
.content {
margin-left: 50px
<script type="text/javascript" src="script.js"></script>
<body class="content">
<!-- BEGIN -->
<h2 class="title-doc" id="_DOC_GENERATE_SPACE_">Loading</h2>
The Loading component is an overlay that prevents user interaction while indicating activity. By default, it shows a spinner based on the mode. Dynamic content can be passed and displayed with the spinner. The spinner can be hidden or customized to use several predefined options. The loading indicator is presented on top of other content even during navigation.
<div class="dependency tooltip">
<strong>Dependency:</strong> <code>alert</code>.
<span class="tooltiptext">The dependencies will be installed together with this module</span>
To use this component you need install with the command:
<pre>mobileui install loading</pre>
For use you need call the function <code>loading('MESSAGE TO LOADING')</code> or <code>loading()</code> for just spinner show, and when you can close the loading component you call <code>closeLoading()</code> function.
You can show loading in button element, just call <code>loadingElement('ID_YOUR_ELEMENT')</code> and close call <code>closeLoading('ID_YOUR_ELEMENT')</code>. It is posible add another params: <code>loadingElement('ID_ELEMENT','MESSAGE (optional)', 'LEFT/RIGHT','COLOR')</code>
See this small example:
<textarea class="bind-code" mode="text/html" header-absolute="true" replace="body,div|padding,padding body|loading,loadingLand" height-preview="200px" border="true" multiplatform="true">
<body class="padding">
<button class="teal full radius margin-bottom" onclick="loading('Please wait...')">
Show load component
<button class="teal full radius margin-bottom" id="myButton" onclick="loadingElement('myButton')">
Show load component in element
<button class="teal full radius margin-bottom" id="myButton2" onclick="loadingElement('myButton2', 'Please wait...')">
Show load component in element
<!-- DONE -->
<script src=""></script>
<script src=""></script>
<script type="text/javascript" src=""></script>
<script type="text/javascript" src="../assets/js/main.js"></script>