Page Menu
Home
Code
Search
Configure Global Search
Log In
Files
F390539
CheckedMenuItem.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
CheckedMenuItem.js
View Options
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if
(
!
dojo
.
_hasResource
[
"dijit.CheckedMenuItem"
]){
dojo
.
_hasResource
[
"dijit.CheckedMenuItem"
]
=
true
;
dojo
.
provide
(
"dijit.CheckedMenuItem"
);
dojo
.
require
(
"dijit.MenuItem"
);
dojo
.
declare
(
"dijit.CheckedMenuItem"
,
dijit
.
MenuItem
,{
templateString
:
dojo
.
cache
(
"dijit"
,
"templates/CheckedMenuItem.html"
,
"<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">✓</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t</td>\n</tr>\n"
),
checked
:
false
,
_setCheckedAttr
:
function
(
_1
){
dojo
.
toggleClass
(
this
.
domNode
,
"dijitCheckedMenuItemChecked"
,
_1
);
dijit
.
setWaiState
(
this
.
domNode
,
"checked"
,
_1
);
this
.
checked
=
_1
;
},
onChange
:
function
(
_2
){
},
_onClick
:
function
(
e
){
if
(
!
this
.
disabled
){
this
.
attr
(
"checked"
,
!
this
.
checked
);
this
.
onChange
(
this
.
checked
);
}
this
.
inherited
(
arguments
);
}});
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 15:27 (7 h, 54 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25241
Default Alt Text
CheckedMenuItem.js (1 KB)
Attached To
rZED Zed
Event Timeline
Log In to Comment