Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F947632
PicasaViewList.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
PicasaViewList.js
View Options
if
(
!
dojo
.
_hasResource
[
"dojox.data.demos.widgets.PicasaViewList"
]){
//_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo
.
_hasResource
[
"dojox.data.demos.widgets.PicasaViewList"
]
=
true
;
dojo
.
provide
(
"dojox.data.demos.widgets.PicasaViewList"
);
dojo
.
require
(
"dijit._Templated"
);
dojo
.
require
(
"dijit._Widget"
);
dojo
.
require
(
"dojox.data.demos.widgets.PicasaView"
);
dojo
.
declare
(
"dojox.data.demos.widgets.PicasaViewList"
,
[
dijit
.
_Widget
,
dijit
.
_Templated
],
{
//Simple demo widget that is just a list of PicasaView Widgets.
templateString
:
"<div dojoAttachPoint=\"list\"></div>\n\n"
,
//Attach points for reference.
listNode
:
null
,
postCreate
:
function
(){
this
.
fViewWidgets
=
[];
},
clearList
:
function
(){
while
(
this
.
list
.
firstChild
){
this
.
list
.
removeChild
(
this
.
list
.
firstChild
);
}
for
(
var
i
=
0
;
i
<
this
.
fViewWidgets
.
length
;
i
++
){
this
.
fViewWidgets
[
i
].
destroy
();
}
this
.
fViewWidgets
=
[];
},
addView
:
function
(
viewData
){
var
newView
=
new
dojox
.
data
.
demos
.
widgets
.
PicasaView
(
viewData
);
this
.
fViewWidgets
.
push
(
newView
);
this
.
list
.
appendChild
(
newView
.
domNode
);
}
});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 12:42 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
27389
Default Alt Text
PicasaViewList.js (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment