dragAction([action])

Class: MenuBar. Method inherited from UIComponent.

Description:

Sets or gets the drag action for this component (e.g., Copy, Move), and enables or disables dragging accordingly.
Passing None disables dragging; all other values enable it.

Parameters:

Name Type Description

[action]

DragDropAction

One of enum values: DragDropAction.[None|Copy|Move|CopyOrMove|Link]. None is default.

Returns:

Returns this component if argument is provided, otherwise returns string value as one of the DragDropAction enum values.

Type: string | this