Class Index | File Index

Classes


Class MochiKit.Widget.Icon


Extends MochiKit.Widget.
The icon widget class. Used to provide a small clickable image, using the <img> HTML element. In particular, the "onclick" event is usually of interest. Predefined icon images for variuos purposes are available as constants.
Defined in: Widget.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Creates a new icon widget.
Field Summary
Field Attributes Field Name and Description
 
ADD
The add icon definition.
 
The automatic icon definition.
 
The blank icon definition.
 
The calendar icon definition.
 
The cancel icon definition.
 
The close icon definition.
 
The comment icon definition.
 
The config icon definition.
 
CUT
The cut icon definition.
 
The default icon definition, inherited by all others.
 
The delay icon definition.
 
The delete icon definition.
 
The config icon definition.
 
The document icon definition.
 
The down icon definition.
 
The edit icon definition.
 
The error icon definition.
 
The expand icon definition.
 
The export icon definition.
 
The folder icon definition.
 
The help icon definition.
 
The left icon definition.
 
The loading icon definition.
 
The large loading icon definition.
 
The minus icon definition.
 
The next icon definition.
 
OK
The ok icon definition.
 
The plugin icon definition.
 
The plus icon definition.
 
The previuos icon definition.
 
The reload icon definition.
 
The remove icon definition.
 
The resize icon definition.
 
The right icon definition.
 
The search icon definition.
 
The select icon definition.
 
UP
The up icon definition.
Fields borrowed from class MochiKit.Widget:
_id, Classes
Method Summary
Method Attributes Method Name and Description
 
setAttrs(attrs)
Updates the icon or HTML DOM node attributes.
Methods borrowed from class MochiKit.Widget:
_animQueueId, _createWidgetTreeElem, _eventHandler, _widgetMixin, addAll, addChildNode, addClass, animate, blurAll, createWidget, createWidgetTree, destroy, destroyWidget, emitSignal, getChildNodes, hasClass, hide, isFormField, isHidden, isWidget, removeAll, removeChildNode, removeClass, setStyle, show, toggleClass
Class Detail
MochiKit.Widget.Icon(attrs)
Creates a new icon widget.
Parameters:
{Object} attrs
the widget and node attributes
{String} attrs.ref Optional
the referenced icon definition
{String} attrs.src Optional
the icon image source URL (unmodified)
{String} attrs.url Optional
the icon image file URL, prepended by the "baseUrl" (that is inherited from the default icon)
{String} attrs.baseUrl Optional
the icon image base URL, used only to prepend to "url" (normally only specified in the default icon)
{String} attrs.tooltip Optional
the icon tooltip text
Returns:
{Widget} the widget DOM node
Field Detail
ADD
The add icon definition.

AUTOMATIC
The automatic icon definition.

BLANK
The blank icon definition.

CALENDAR
The calendar icon definition.

CANCEL
The cancel icon definition.

CLOSE
The close icon definition.

COMMENT
The comment icon definition.

CONFIG
The config icon definition.

CUT
The cut icon definition.

DEFAULT
The default icon definition, inherited by all others.

DELAY
The delay icon definition.

DELETE
The delete icon definition.

DIALOG
The config icon definition.

DOCUMENT
The document icon definition.

DOWN
The down icon definition.

EDIT
The edit icon definition.

ERROR
The error icon definition.

EXPAND
The expand icon definition.

EXPORT
The export icon definition.

FOLDER
The folder icon definition.

HELP
The help icon definition.

LEFT
The left icon definition.

LOADING
The loading icon definition.

LOADING_LARGE
The large loading icon definition.

MINUS
The minus icon definition.

NEXT
The next icon definition.

OK
The ok icon definition.

PLUGIN
The plugin icon definition.

PLUS
The plus icon definition.

PREVIOUS
The previuos icon definition.

RELOAD
The reload icon definition.

REMOVE
The remove icon definition.

RESIZE
The resize icon definition.

RIGHT
The right icon definition.

SEARCH
The search icon definition.

SELECT
The select icon definition.

UP
The up icon definition.
Method Detail
setAttrs(attrs)
Updates the icon or HTML DOM node attributes.
Parameters:
{Object} attrs
the widget and node attributes to set
{String} attrs.ref Optional
the referenced icon definition
{String} attrs.src Optional
the icon image source URL (unmodified)
{String} attrs.url Optional
the icon image file URL, prepended by the "baseUrl" (that is inherited from the default icon)
{String} attrs.baseUrl Optional
the icon image base URL, used only to prepend to "url" (normally only specified in the default icon)
{String} attrs.tooltip Optional
the icon tooltip text

Documentation generated by JsDoc Toolkit 2.0.2 on Sun May 24 2009 13:14:16 GMT+0200 (CEST)