This mixin can be used for widgets that support mouse clicks and provides the ability to support
clicks with the middle mouse button or the control key depressed to open navigation requests
in a new browser tab.
- Since:
- 1.0.50
- Copyright:
- Copyright (C) 2005-2020 Alfresco Software Limited
- License:
- GNU Lesser General Public License, see: Open Source Licensing
- Source:
Extends
Members
-
defaultNavigationTarget :string
-
The default navigation target to use in processMiddleOrCtrlClick if a middle click or control-click is not detected.
Type:
- string
- Default Value:
- "CURRENT"
- Source:
-
newTabOnMiddleOrCtrlClick :boolean
-
Indicates whether or not a middle-button or control key depresssed mouse click on the link should result in the link being opened in a new browser tab. If this is configured to be true then the a "target" attribute of "NEW" will be configured on the payload.
Type:
- boolean
- Default Value:
- false
- Source:
Methods
-
processMiddleOrCtrlClick(evt, publishTopic, publishPayload)
-
For navigation topics the click action is checked for a middle mouse click or control key depressed mouse click if the payload does not request that the navigation target is a new browser tab then it will be added. No change will be made if newTabOnMiddleOrCtrlClick is not configured to be true.
Parameters:
Name Type Description evt
object The link click event publishTopic
string The topic to be published as a result of the click publishPayload
object The payload to be published as a result of the click - Source: