Skip to content

Commit 98fff4e

Browse files
committed
Loader: Add classes option
1 parent 1c80d8a commit 98fff4e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

entries/loader.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@ $.mobile.loading( "show", {
3232
<options>
3333
<xi:include href="../includes/widget-option-defaults.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
3434
<xi:include href="../includes/widget-option-disabled.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
35+
<option name="classes" type="Object">
36+
<default>{
37+
"ui-loader": "ui-corner-all",
38+
"ui-loader-icon": "ui-icon-loading"
39+
}</default>
40+
<xi:include href="../includes/classes-option-desc.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
41+
<xi:include href="../includes/classes-option-example.xml" xmlns:xi="http://www.w3.org/2003/XInclude"/>
42+
</option>
3543
<option name="html" default='""' example-value='"&lt;span class=&#39;ui-icon ui-icon-loading&#39;&gt;&lt;img src=&#39;jquery-logo.png&#39; /&gt;&lt;h2&gt;is loading for you ...&lt;/h2&gt;&lt;/span&gt;"'>
3644
<desc>If this is set to a non empty string value, it will be used to replace the entirety of the loader's inner html.</desc>
3745
<type name="string" />

includes/classes-option-example.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<?xml version="1.0"?>
32
<examples>
43
<example>

0 commit comments

Comments
 (0)