Class ZmOperation
Method Detail
<static>
{ZmPopupMenu}
ZmOperation.addColorMenu(parent, hideNoFill)
Adds a color submenu for choosing tag color.
<static>
ZmOperation.addContactGroupMenu(parent)
Adds a contact group menu for creating a contacts from the contact list
<static>
ZmOperation.addDeferredMenu(addMenuFunc, parent)
Adds a deferred menu.
<static>
{ZmTagMenu}
ZmOperation.addMoveMenu(parent)
Adds a "Move" submenu for tagging items.
<static>
{ZmActionMenu}
ZmOperation.addNewMenu(parent)
Adds a "New" submenu. Overrides are used because we don't want "New" at the
beginning of each label.
<static>
ZmOperation.addOperation(parent, id, opHash, index, htmlElId)
Adds the operation.
<static>
{ZmActionMenu}
ZmOperation.addSearchMenu(parent)
Adds a "Search" submenu for searching from/to sender/recipient.
<static>
{ZmTagMenu}
ZmOperation.addTagMenu(parent)
Adds a "Tag" submenu for tagging items.
<static>
{Hash}
ZmOperation.createOperations(parent, operations, overrides)
Creates operation descriptors for the given operation IDs,
then creates the appropriate widget for each operation based on the type of
the parent. If it's a toolbar, then buttons are created. If it's a menu, menu items are
created.
To override or add properties to a particular operation, pass in a hash of properties and values as a value in overrides, with the operation ID as the key.
<static>
ZmOperation.defineOperation(baseId, overrides)
Creates an operation descriptor. The ID of an existing operation can be passed
in to use as a base, with overridden properties passed in a hash. A new operation
can be defined by passing its properties in a hash.
<static>
{Array}
ZmOperation.filterOperations(list)
Takes a list of operations and removes any who have a corresponding setting that's
not set. Also deals with the fact that you don't want a separator or a spacer unless
there's stuff on either side of it.
<static>
{Object}
ZmOperation.getProp(id, prop)
Gets the value of a given property for a given operation.
<static>
{String}
ZmOperation.getToolTip(id, keyMap, tooltip)
Gets the tooltip for the operation with the given ID. If the operation has a shortcut associated
with it, a shortcut hint is appended to the end of the tooltip.
<static>
ZmOperation.initialize()
Initializes and creates standard operations.
<static>
{Boolean}
ZmOperation.isSep(id)
Checks if the operation is a separator or spacer.
<static>
ZmOperation.registerOp(op, params:, text, tooltip, image, disImage, precondition, precondition, callback)
Defines the aspects of an operation, and the ID that refers to it.
<static>
ZmOperation.removeOperation(parent, id, opHash)
Removes the operation.
<static>
ZmOperation.setOperation(parent, oldOp, newOp, text, image, disImage)
Replaces the attributes of one operation with those of another, wholly or in part.
|
||||||||||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:35 GMT-0400 (EDT)
|