RasterToolbar.add( newCommand [, menu [, refCommand [, after]]] )

Adds a command item to this toolbar.

Parameters

Name Type   Description
newCommand object A reference to a RasterCommand object.
menu object optional A reference to a menu object. This is the popup menu shown then the command item is selected. When a menu is specified, the drop down arrow is automatically turned on. Use RasterCommand.showArrow() to turned off if desired.
refCommand object optional A reference to a Command object, CommandItem object, or a string containing the ID of an existing command. If a command matching this argument is not found in this container, the separator is appended at the end of the container.
after boolean optional true adds the separator after the given refCommand (default); false adds this separator before the given refCommand.

Returns

Type Description
object A reference to the RasterCommandItem object just added.
Home Examples Download License
 
Copyright © 2010-2017 Edwin R. López