Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F947972
WidgetRepeater.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
WidgetRepeater.js
View Options
if
(
!
dojo
.
_hasResource
[
"dojox.wire.demos.WidgetRepeater"
]){
//_hasResource checks added by build. Do not use _hasResource directly in your code.
dojo
.
_hasResource
[
"dojox.wire.demos.WidgetRepeater"
]
=
true
;
dojo
.
provide
(
"dojox.wire.demos.WidgetRepeater"
)
dojo
.
require
(
"dojo.parser"
);
dojo
.
require
(
"dijit._Widget"
);
dojo
.
require
(
"dijit._Templated"
);
dojo
.
require
(
"dijit._Container"
);
dojo
.
declare
(
"dojox.wire.demos.WidgetRepeater"
,
[
dijit
.
_Widget
,
dijit
.
_Templated
,
dijit
.
_Container
],
{
// summary:
// Simple widget that does generation of widgets repetatively, based on calls to
// the createNew function and contains them as child widgets.
templateString
:
"<div class='WidgetRepeater' dojoAttachPoint='repeaterNode'></div>"
,
widget
:
null
,
repeater
:
null
,
createNew
:
function
(
obj
){
// summary:
// Function to handle the creation of a new widget and appending it into the widget tree.
// obj:
// The parameters to pass to the widget.
try
{
if
(
dojo
.
isString
(
this
.
widget
)){
dojo
.
require
(
this
.
widget
);
this
.
widget
=
dojo
.
getObject
(
this
.
widget
);
}
this
.
addChild
(
new
this
.
widget
(
obj
));
this
.
repeaterNode
.
appendChild
(
document
.
createElement
(
"br"
));
}
catch
(
e
){
console
.
debug
(
e
);
}
}
});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Apr 26, 14:11 (10 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26490
Default Alt Text
WidgetRepeater.js (1 KB)
Attached To
rZEDHG ZedLegacy
Event Timeline
Log In to Comment