Javascript for Episerver 7.5 cms

command
component
contentediting
command
- _ChangeContentStatus
- _CommandWithDialogMixin
- _ContentAreaCommand
- _ContentCommandBase
- _LegacyDialogCommandBase
- AccessRights
- BlockEdit
- BlockRemove
- CancelAndEdit
- ContentAreaCommands
- CreateDraft
- DynamicProperties
- EditCommonDraft
- Editing
- ForPublishMenu
- IgnoreInUseNotification
- ItemCollectionCommands
- ItemEdit
- LanguageSettings
- ManageExpiration
- MoveOutsideGroup
- MoveToNext
- MoveToPrevious
- MoveVisibleToNext
- MoveVisibleToPrevious
- NewItem
- PermanentInUseToggle
- Personalize
- Publish
- Reject
- RevertToPublished
- ScheduleForPublish
- SelectDisplayOption
- SendForReview
- StartWorkflow
- Withdraw
- WorkflowTask
commandproviders
ContentActionSupport
editors
model
CollectionEditorModel
- CollectionEditorItemModel
- _AddItemDialogMixin
- _BlockTreeNode
- _ClipboardPasteMixin
- _ContentAreaTree
- _ContentAreaTreeModel
- _ContentAreaTreeNodeMixin
- _GroupTreeNode
- _PreviewableEditor
- _TextWithActionLinksMixin
- CheckBoxListEditor
- CollectionEditor
- ContentAreaEditor
- ContentBlockEditor
- ContentBlockEditorViewModel
- ContentEditableEditor
- DefaultGridAssembler
- DialogWithCheckBoxListEditor
- DialogWithCheckBoxListEditorViewModel
- ItemCollectionEditor
- PreviewableDateTimeEditor
- PreviewableTextEditor
- SelectionEditor
- ShortcutEditor
- TinyMCEEditor
- TinyMCEInlineEditor
PageShortcutTypeSupport
viewmodel
- _ContainerViewModel
- _ContentViewModelObserver
- _ViewModelMixin
- CollectionItemModel
- ContentAreaViewModel
- ContentBlockViewModel
- ContentDetailsViewModel
- CreateContentViewModel
- CreateLanguageBranchViewModel
- EditActionPanelViewModel
- ExpirationDialogViewModel
- ItemCollectionViewModel
- LinkItemModel
- PersonalizedGroupViewModel
- PublishMenuViewModel
- ShortcutDialogViewModel
viewsettings
- _ContentEditingNotification
- _ContextualContentContextMixin
- _EditorWrapperBase
- _FloatingComponentEditorWrapperMixin
- _FormEditingMixin
- _HasFloatingComponent
- _Renderer
- _ValidationMixin
- _View
- _ViewSetting
- AutoSaveButton
- ClientRenderer
- ContentDetails
- ContentEditableWrapper
- ContentEditingValidator
- ContentModelServerSync
- ContentPreview
- ContentReferencesNotification
- ContentViewModel
- CreateContent
- CreateLanguageBranch
- DateTimeNowEditor
- DialogEditorWrapper
- EditActionPanel
- EditingBase
- EditorFactory
- EditToolbar
- ExpirationDialog
- ExpirationNotification
- FloatingComponentHandler
- FloatingEditorWrapper
- FlyoutEditorWrapper
- FormEditing
- InlineEditorWrapper
- InUseNotificationManager
- LanguageNotification
- MappingManager
- NewContentNameInputDialog
- NotificationBar
- OnPageEditing
- Operation
- OverlayBasedEditorWrapper
- PageDataController
- PropertyRenderer
- PropertyXhtmlRenderer
- PseudoContextualCommandDecorator
- PublishMenu
- RenderManager
- RichTextInlineEditorWrapper
- ScheduledPublishSelector
- ScheduledPublishSelectorViewModel
- SettingsPanel
- ShortcutDialog
- ShortcutNotification
- SideBySideEditorWrapper
- StandardToolbar
- UpdateController
- ValidationTextboxWithWarning
- ViewSettingsManager
- ViewSettingsNotification
- WorkflowTaskNotification
conversion
core
dgrid
extension
form
layers
layout
legacy
store
widget
command
overlay
sharedContentDialogHandler
UploadUtil
viewmodel
- _CategoryTreeNode
- _ConfigurableContentListBase
- _ContentListBase
- _ContentListKeyMixin
- _ContentListMouseMixin
- _ContentTreeNode
- _ContentTreeNodeMixin
- _DndStateMixin
- _DropDownWidgetItemMixin
- _Droppable
- _FolderTreeNode
- _GridWidgetBase
- _HasChildDialogMixin
- _HasClearButton
- _HierarchicalModelMixin
- _HyperLinkFieldItem
- _ItemSelectorBase
- _LegacySelectorBase
- _SelectorBase
- _UserResizable
- Breadcrumb
- BreadcrumbCurrentItem
- CategorySelector
- CategorySelectorDialog
- CategoryTree
- CategoryTreeStoreModel
- ChannelsButton
- ChannelSelector
- ContentForestStoreModel
- ContentList
- ContentListing
- ContentReferences
- ContentSearchBox
- ContentSelector
- ContentSelectorDialog
- ContentTree
- ContentTreeModelConfirmation
- ContentTreeStoreModel
- ContentType
- ContentTypeGroup
- ContentTypeList
- ContextualContentForestStoreModel
- CreateCommandsMixin
- DisplayOptionSelector
- EmptyTrashMenu
- FileList
- FilesUploadDropZone
- FolderTree
- HierarchicalList
- HyperLinkSelector
- IFrameController
- LinkEditor
- MultipleFileUpload
- MultipleFileUploadConfirmation
- NotificationStatusBar
- NotificationStatusZone
- PersonalizationSelector
- PropertiesForm
- ReadOnlyContentList
- ReadOnlyDateTimeEditor
- ResolutionSelector
- SearchBox
- SearchResultList
- SelectorMenuBase
- TooltipDialog
- Trash
- TrashItemList
- TrashViewModelConfirmation
- UrlContentSelector
- UrlSelector
- ViewLanguageButton
- ViewLanguageSelector
- ViewSelector
- ViewSelectorDropDownButton
- ViewSettingsExpandoButton
- VisitorGroupButton
- VisitorGroupsSelector
- XFormEditor
- XFormPropertyWidget
- _ContentContextMixin
- _MultilingualMixin
- ApplicationSettings
- BackContextHistory
- CMSModule
- ContentLanguageHelper
- ContextSynchronizer
- ErrorDialog
- Profile

ContentTree
Location
epi-cms/widget/ContentTree
_attrPairNames
_blankGif
Path to a blank 1x1 image.
Used by <img>
nodes in templates that really get their image via CSS background-image.
_earlyTemplatedStartup
A fallback to preserve the 1.0 - 1.3 behavior of children in templates having their startup called before the parent widget fires postCreate. Defaults to 'false', causing child widgets to have their .startup() called immediately before a parent widget .startup(), but always after the parent .postCreate(). Set to 'true' to re-enable to previous, arguably broken, behavior.
_focusManager
_nodePixelIndent
Number of pixels to indent tree nodes (relative to parent node). Default is 19 but can be overridden by setting CSS class dijitTreeIndent and calling resize() or startup() on tree after it's in the DOM.
_outstandingPaintOperations
_setClassAttr
_setDirAttr
_setIdAttr
_setLangAttr
_skipNodeCache
_started
startup() has completed.
allowManipulation
Denotes if node manipulation is allowed.
attributeMap
Deprecated. Instead of attributeMap, widget should have a _setXXXAttr attribute for each XXX attribute to be mapped to the DOM.
attributeMap sets up a "binding" between attributes (aka properties) of the widget and the widget's DOM. Changes to widget attributes listed in attributeMap will be reflected into the DOM.
For example, calling set('title', 'hello') on a TitlePane will automatically cause the TitlePane's DOM to update with the new title.
attributeMap is a hash where the key is an attribute of the widget, and the value reflects a binding to a:
DOM node attribute
focus: {node: "focusNode", type: "attribute"} Maps this.focus to this.focusNode.focus
DOM node innerHTML
title: { node: "titleNode", type: "innerHTML" } Maps this.title to this.titleNode.innerHTML
DOM node innerText
title: { node: "titleNode", type: "innerText" } Maps this.title to this.titleNode.innerText
DOM node CSS class
myClass: { node: "domNode", type: "class" } Maps this.myClass to this.domNode.className
If the value is an array, then each element in the array matches one of the formats of the above list.
There are also some shorthands for backwards compatibility:
- string --> { node: string, type: "attribute" }, for example:
"focusNode" ---> { node: "focusNode", type: "attribute" }
- "" --> { node: "domNode", type: "attribute" }
autoExpand
Fully expand the tree on load. Overrides persist
.
baseClass
Root CSS class of the widget (ex: dijitTextBox), used to construct CSS classes to indicate widget state.
betweenThreshold
Set to a positive value to allow drag and drop "between" nodes.
If during DnD mouse is over a (target) node but less than betweenThreshold pixels from the bottom edge, dropping the the dragged node will make it the next sibling of the target node, rather than the child.
Similarly, if mouse is over a target node but less that betweenThreshold pixels from the top edge, dropping the dragged node will make it the target node's previous sibling rather than the target node's child.
checkAcceptance
childrenAttr
Deprecated. This information should be specified in the model. One ore more attributes that holds children of a tree node
class
containerNode
Designates where children of the source DOM node will be placed. "Children" in this case refers to both DOM nodes and widgets. For example, for myWidget:
<div data-dojo-type=myWidget>
<b> here's a plain DOM node
<span data-dojo-type=subWidget>and a widget</span>
<i> and another plain DOM node </i>
</div>
containerNode would point to:
<b> here's a plain DOM node
<span data-dojo-type=subWidget>and a widget</span>
<i> and another plain DOM node </i>
In templated widgets, "containerNode" is set via a data-dojo-attach-point assignment.
containerNode must be defined for any widget that accepts innerHTML (like ContentPane or BorderContainer or even Button), and conversely is null for widgets that don't, like TextBox.
dir
Bi-directional support, as defined by the HTML DIR attribute. Either left-to-right "ltr" or right-to-left "rtl". If undefined, widgets renders in page's default direction.
dndParams
dndType
Defines a type of widget.
domNode
This is our visible representation of the widget! Other DOM Nodes may by assigned to other properties, usually through the template system's data-dojo-attach-point syntax, but the domNode property is the canonical "top level" node in widget UI.
dragThreshold
Number of pixels mouse moves before it's considered the start of a drag operation
expandExtraNodeItems
A collection of content item id or one content item id need to expand by default.
expandOnDnd
Enables/disables expand on a tree node when Dnd over it.
focused
This widget or a widget it contains has focus, or is "active" because it was recently clicked.
handleSelection
Flag that indicates this tree need to reset selection each time it had refresh
id
A unique, opaque ID string that can be assigned by users or by the system. If the developer passes an ID which is known not to be unique, the specified ID is ignored and the system-generated ID is used instead.
label
Deprecated. Use dijit/tree/ForestStoreModel directly instead. Used in conjunction with query parameter. If a query is specified (rather than a root node id), and a label is also specified, then a fake root node is created and displayed, with this label.
lang
Rarely used. Overrides the default Dojo locale used to render this widget, as defined by the HTML LANG attribute. Value must be among the list of locales specified during by the Dojo bootstrap, formatted according to RFC 3066 (like en-us).
model
Interface to read tree data, get notifications of changes to tree data, and for handling drop operations (i.e drag and drop onto the tree)
multiCharSearchDuration
If multiple characters are typed where each keystroke happens within multiCharSearchDuration of the previous keystroke, search for nodes matching all the keystrokes.
For example, typing "ab" will search for entries starting with "ab" unless the delay between "a" and "b" is greater than multiCharSearchDuration.
nodeConstructor
Tree node constructor. It should be a sub class of dijit.Tree._TreeNode
onDndCancel
Parameter to dndController, see dijit/tree/dndSource.onDndCancel()
.
Generally this doesn't need to be set.
onDndDrop
Parameter to dndController, see dijit/tree/dndSource.onDndDrop()
.
Generally this doesn't need to be set.
openOnClick
If true, clicking a folder node's label will open it, rather than calling onClick()
openOnDblClick
If true, double-clicking a folder node's label will open it, rather than calling onDblClick()
ownerDocument
The document this widget belongs to. If not specified to constructor, will default to srcNodeRef.ownerDocument, or if no sourceRef specified, then to dojo/_base/window::doc
path
Backward compatible singular variant of paths.
paths
Full paths from rootNode to selected nodes expressed as array of items or array of ids. Since setting the paths may be asynchronous (because of waiting on dojo.data), set("paths", ...) returns a Deferred to indicate when the set is complete.
persist
Enables/disables use of cookies for state saving.
query
Deprecated. User should specify query to the model directly instead. Specifies datastore query to return the root item or top items for the tree.
roots
A list of references to the root nodes.
selectedItem
Backward compatible singular variant of selectedItems.
selectedItems
The currently selected items in this tree.
This property can only be set (via set('selectedItems', ...)) when that item is already
visible in the tree. (I.e. the tree has already been expanded to show that node.)
Should generally use paths
attribute to set the selected items instead.
showRoot
Flag that indicates whether the the root node should be displayed.
srcNodeRef
pointer to original DOM node
store
Deprecated. Use "model" parameter instead. The store to get data to display in the tree.
style
HTML style attributes as cssText string or name/value hash
templatePath
Path to template (HTML file) for this widget relative to dojo.baseUrl. Deprecated: use templateString with require([... "dojo/text!..."], ...) instead
templateString
textDir
Bi-directional support, the main variable which is responsible for the direction of the text. The text direction can be different than the GUI direction by using this parameter in creation of a widget.
Allowed values:
- "ltr"
- "rtl"
- "auto" - contextual the direction of a text defined by first strong letter.
By default is as the page direction.
title
HTML title attribute.
For form widgets this specifies a tooltip to display when hovering over the widget (just like the native HTML title attribute).
For TitlePane or for when this widget is a child of a TabContainer, AccordionContainer, etc., it's used to specify the tab label, accordion pane title, etc.
tooltip
When this widget's title attribute is used to for a tab label, accordion pane title, etc., this specifies the tooltip to appear when the mouse is hovered over that text.
typeIdentifiers
Type identifier filter.
_createTreeNode ( args
)
Overridable function to make tree node draggable after creation
Name | Summary | Type | Usage |
---|---|---|---|
args | Tree node creation arguments |
Object | required |
_fillContent ( source
)
Relocate source contents to templated container node. this.containerNode must be able to receive children, or exceptions will be thrown.
Name | Summary | Type | Usage |
---|---|---|---|
source | DomNode | required |
_onBlur ( )
This is where widgets do processing for when they stop being active, such as changing CSS classes. See onBlur() for more details.
_onFocus ( )
This is where widgets do processing for when they are active, such as changing CSS classes. See onFocus() for more details.
_onItemDelete ( item ,
deleteChildren
)
Override of dijit.Tree._onItemDelete to enable cleaning of the itemsNodeMap from children of the item being deleted.
Name | Summary | Type | Usage |
---|---|---|---|
item | Item | required | |
deleteChildren | boolean | required |
_preparePathNodes ( paths
)
Prepare steps before node selection in the tree
Name | Summary | Type | Usage |
---|---|---|---|
paths | undefined | required |
_setStyleAttr ( value
)
Sets the style attribute of the widget according to value, which is either a hash like {height: "5px", width: "3px"} or a plain string
Name | Summary | Type | Usage |
---|---|---|---|
value | String||Object | required |
_wrapModel ( model
)
Wraps the model with a confirmation
Name | Summary | Type | Usage |
---|---|---|---|
model | undefined | required |
applyTextDir ( element ,
text
)
The function overridden in the _BidiSupport module, originally used for setting element.dir according to this.textDir. In this case does nothing.
Name | Summary | Type | Usage |
---|---|---|---|
element | DOMNode | required | |
text | String | required |
buildNodeFromTemplate ( args
)
Build tree node from the given template.
Name | Summary | Type | Usage |
---|---|---|---|
args | Tree node creation arguments |
Object | required |
connect ( obj ,
event ,
method
)
Deprecated, will be removed in 2.0, use this.own(on(...)) or this.own(aspect.after(...)) instead.
Connects specified obj/event to specified method of this object and registers for disconnect() on widget destroy.
Provide widget-specific analog to dojo.connect, except with the
implicit use of this widget as the target object.
Events connected with this.connect
are disconnected upon
destruction.
Name | Summary | Type | Usage |
---|---|---|---|
obj | Object|null | required | |
event | String|Function | required | |
method | String|Function | required |
var btn = new Button();
// when foo.bar() is called, call the listener we're going to
// provide in the scope of btn
btn.connect(foo, "bar", function(){
console.debug(this.toString());
});
defer ( fcn ,
delay
)
Wrapper to setTimeout to avoid deferred functions executing after the originating widget has been destroyed. Returns an object handle with a remove method (that returns null) (replaces clearTimeout).
Name | Summary | Type | Usage |
---|---|---|---|
fcn | undefined | required | |
delay | undefined | required |
destroyRendering ( preserveDom
)
Destroys the DOM nodes associated with this widget
Name | Summary | Type | Usage |
---|---|---|---|
preserveDom | If true, this method will leave the original DOM structure alone during tear-down. Note: this will not work with _Templated widgets yet. |
Boolean | optional |
disconnect ( handle
)
Deprecated, will be removed in 2.0, use handle.remove() instead.
Disconnects handle created by connect
.
Name | Summary | Type | Usage |
---|---|---|---|
handle | undefined | required |
dndController ( )
Class to use as as the dnd controller. Specifying this class enables DnD. Generally you should specify this as dijit/tree/dndSource. Setting of dijit/tree/_dndSelector handles selection only (no actual DnD).
emit ( type ,
eventObj ,
callbackArgs
)
Used by widgets to signal that a synthetic event occurred, ex:
myWidget.emit("attrmodified-selectedChildWidget", {}).
Emits an event on this.domNode named type.toLowerCase(), based on eventObj. Also calls onType() method, if present, and returns value from that method. By default passes eventObj to callback, but will pass callbackArgs instead, if specified. Modifies eventObj by adding missing parameters (bubbles, cancelable, widget).
Name | Summary | Type | Usage |
---|---|---|---|
type | String | required | |
eventObj | Object | optional | |
callbackArgs | Array | optional |
focusNode ( node
)
Focus on the specified node (which must be visible)
Name | Summary | Type | Usage |
---|---|---|---|
node | _tree.Node | required |
getIconClass ( item ,
opened
)
Overridable function to return CSS class name to display icon
Name | Summary | Type | Usage |
---|---|---|---|
item | dojo.data.Item | required | |
opened | Boolean | required |
getIconStyle ( item ,
opened
)
Overridable function to return CSS styles to display icon
Name | Summary | Type | Usage |
---|---|---|---|
item | dojo/data/Item | required | |
opened | Boolean | required |
getItemChildren ( parentItem ,
onComplete
)
Deprecated. This should be specified on the model itself.
Overridable function that return array of child items of given parent item, or if parentItem==null then return top items in tree
Name | Summary | Type | Usage |
---|---|---|---|
parentItem | undefined | required | |
onComplete | undefined | required |
getLabel ( item
)
Overridable function to get the label for a tree node (given the item)
Name | Summary | Type | Usage |
---|---|---|---|
item | dojo/data/Item | required |
getLabelClass ( item ,
opened
)
Overridable function to return CSS class name to display label
Name | Summary | Type | Usage |
---|---|---|---|
item | dojo/data/Item | required | |
opened | Boolean | required |
getLabelStyle ( item ,
opened
)
Overridable function to return CSS styles to display label
Name | Summary | Type | Usage |
---|---|---|---|
item | dojo/data/Item | required | |
opened | Boolean | required |
getRowClass ( item ,
opened
)
Overridable function to return CSS class name to display row
Name | Summary | Type | Usage |
---|---|---|---|
item | dojo/data/Item | required | |
opened | Boolean | required |
getRowStyle ( item ,
opened
)
Overridable function to return CSS styles to display row
Name | Summary | Type | Usage |
---|---|---|---|
item | dojo/data/Item | required | |
opened | Boolean | required |
getTextDir ( text ,
originalDir
)
Return direction of the text. The function overridden in the _BidiSupport module, its main purpose is to calculate the direction of the text, if was defined by the programmer through textDir.
Name | Summary | Type | Usage |
---|---|---|---|
text | String | required | |
originalDir | String | required |
getTooltip ( item
)
Overridable function to get the tooltip for a tree node (given the item)
Name | Summary | Type | Usage |
---|---|---|---|
item | dojo/data/Item | required |
isLeftToRight ( )
Return this widget's explicit or implicit orientation (true for LTR, false for RTL)
itemCreator ( nodes ,
target ,
source
)
Returns objects passed to Tree.model.newItem()
based on DnD nodes
dropped onto the tree. Developer must override this method to enable
dropping from external sources onto this Tree, unless the Tree.model's items
happen to look like {id: 123, name: "Apple" } with no other attributes.
For each node in nodes[], which came from source, create a hash of name/value pairs to be passed to Tree.model.newItem(). Returns array of those hashes.
Name | Summary | Type | Usage |
---|---|---|---|
nodes | The DOMNodes dragged from the source container |
DomNode[] | required |
target | The target TreeNode.rowNode |
DomNode | required |
source | The source container the nodes were dragged from, perhaps another Tree or a plain dojo/dnd/Source |
dojo/dnd/Source | required |
mayHaveChildren ( item
)
Deprecated. This should be specified on the model itself.
Overridable function to tell if an item has or may have children. Controls whether or not +/- expando icon is shown. (For efficiency reasons we may not want to check if an element actually has children until user clicks the expando node)
Name | Summary | Type | Usage |
---|---|---|---|
item | dojo/data/Item | required |
onBlur ( )
Called when the widget stops being "active" because focus moved to something outside of it, or the user clicked somewhere outside of it, or the widget was hidden.
onClick ( item ,
node ,
evt
)
Callback when a tree node is clicked
Name | Summary | Type | Usage |
---|---|---|---|
item | Object from the dojo/store corresponding to this TreeNode |
Object | required |
node | The TreeNode itself |
Object | required |
evt | The event |
Event | required |
onClose ( item ,
node
)
Callback when a node is closed
Name | Summary | Type | Usage |
---|---|---|---|
item | Object from the dojo/store corresponding to this TreeNode |
Object | required |
node | The TreeNode itself |
Object | required |
onDblClick ( item ,
node ,
evt
)
Callback when a tree node is double-clicked
Name | Summary | Type | Usage |
---|---|---|---|
item | Object from the dojo/store corresponding to this TreeNode |
Object | required |
node | The TreeNode itself |
Object | required |
evt | The event |
Event | required |
onFocus ( )
Called when the widget becomes "active" because it or a widget inside of it either has focus, or has recently been clicked.
onHide ( )
Called when another widget becomes the selected pane in a
dijit/layout/TabContainer
, dijit/layout/StackContainer
,
dijit/layout/AccordionContainer
, etc.
Also called to indicate hide of a dijit.Dialog
, dijit.TooltipDialog
, or dijit.TitlePane
.
onKeyDown ( event
)
Connect to this function to receive notifications of keys being pressed down.
Name | Summary | Type | Usage |
---|---|---|---|
event | key Event |
undefined | required |
onKeyPress ( event
)
Connect to this function to receive notifications of printable keys being typed.
Name | Summary | Type | Usage |
---|---|---|---|
event | key Event |
undefined | required |
onKeyUp ( event
)
Connect to this function to receive notifications of keys being released.
Name | Summary | Type | Usage |
---|---|---|---|
event | key Event |
undefined | required |
onMouseDown ( event
)
Connect to this function to receive notifications of when the mouse button is pressed down.
Name | Summary | Type | Usage |
---|---|---|---|
event | mouse Event |
undefined | required |
onMouseEnter ( event
)
Connect to this function to receive notifications of when the mouse moves onto this widget.
Name | Summary | Type | Usage |
---|---|---|---|
event | mouse Event |
undefined | required |
onMouseLeave ( event
)
Connect to this function to receive notifications of when the mouse moves off of this widget.
Name | Summary | Type | Usage |
---|---|---|---|
event | mouse Event |
undefined | required |
onMouseMove ( event
)
Connect to this function to receive notifications of when the mouse moves over nodes contained within this widget.
Name | Summary | Type | Usage |
---|---|---|---|
event | mouse Event |
undefined | required |
onMouseOut ( event
)
Connect to this function to receive notifications of when the mouse moves off of nodes contained within this widget.
Name | Summary | Type | Usage |
---|---|---|---|
event | mouse Event |
undefined | required |
onMouseOver ( event
)
Connect to this function to receive notifications of when the mouse moves onto nodes contained within this widget.
Name | Summary | Type | Usage |
---|---|---|---|
event | mouse Event |
undefined | required |
onMouseUp ( event
)
Connect to this function to receive notifications of when the mouse button is released.
Name | Summary | Type | Usage |
---|---|---|---|
event | mouse Event |
undefined | required |
onOpen ( item ,
node
)
Callback when a node is opened
Name | Summary | Type | Usage |
---|---|---|---|
item | dojo/data/Item | required | |
node | Object | required |
onShow ( )
Called when this widget becomes the selected pane in a
dijit/layout/TabContainer
, dijit/layout/StackContainer
,
dijit/layout/AccordionContainer
, etc.
Also called to indicate display of a dijit.Dialog
, dijit.TooltipDialog
, or dijit.TitlePane
.
own ( )
Track specified handles and remove/destroy them when this instance is destroyed, unless they were already removed/destroyed manually.
selectContent ( contentReferenceAsString ,
setFocus ,
needParentRefresh ,
onComplete
)
Select a given page.
Name | Summary | Type | Usage |
---|---|---|---|
contentReferenceAsString | undefined | required | |
setFocus | undefined | required | |
needParentRefresh | undefined | required | |
onComplete | undefined | required |
setAttribute ( attr ,
value
)
Deprecated. Use set() instead.
Name | Summary | Type | Usage |
---|---|---|---|
attr | String | required | |
value | anything | required |
subscribe ( t ,
method
)
Deprecated, will be removed in 2.0, use this.own(topic.subscribe()) instead.
Subscribes to the specified topic and calls the specified method of this object and registers for unsubscribe() on widget destroy.
Provide widget-specific analog to dojo.subscribe, except with the implicit use of this widget as the target object.
Name | Summary | Type | Usage |
---|---|---|---|
t | The topic |
String | required |
method | The callback |
Function | required |
var btn = new Button();
// when /my/topic is published, this button changes its label to
// be the parameter of the topic.
btn.subscribe("/my/topic", function(v){
this.set("label", v);
});