FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
kissy/src/uibase/loadingrender.js at master · feichang/kissy · GitHub
feichang
/
kissy
Public
forked from
kissyteam/kissy
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
kissy
/
src
/
uibase
/
loadingrender.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
41 lines (36 loc) · 1.07 KB
Breadcrumbs
kissy
/
src
/
uibase
/
loadingrender.js
Copy path
File metadata and controls
41 lines (36 loc) · 1.07 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
* loading mask support for overlay
*
@author
承玉<yiminghe@gmail.com>
*/
KISSY
.
add
(
"uibase/loadingrender"
,
function
(
S
,
Node
)
{
function
Loading
(
)
{
}
Loading
.
prototype
=
{
loading
:
function
(
)
{
var
self
=
this
;
if
(
!
self
.
_loadingExtEl
)
{
self
.
_loadingExtEl
=
new
Node
(
"<div "
+
"class='"
+
this
.
get
(
"prefixCls"
)
+
"ext-loading'"
+
" style='position: absolute;"
+
"border: none;"
+
"width: 100%;"
+
"top: 0;"
+
"left: 0;"
+
"z-index: 99999;"
+
"height:100%;"
+
"*height: expression(this.parentNode.offsetHeight);"
+
"'/>"
)
.
appendTo
(
self
.
get
(
"el"
)
)
;
}
self
.
_loadingExtEl
.
show
(
)
;
}
,
unloading
:
function
(
)
{
var
lel
=
this
.
_loadingExtEl
;
lel
&&
lel
.
hide
(
)
;
}
}
;
return
Loading
;
}
,
{
requires
:
[
'node'
]
}
)
;
Back
|
FazBrowse Home
|
New Git URL