class sap.ui.test.actions.Drag

Control sample: sap.ui.test.actions.Drag
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/test/actions/Drag
Application Component: CA-UI5-TA

The Drag action is used to simulate a drag interaction with a control. The control should be draggable, as defined by its dnd aggregation configuration. The drop location will be defined by a consequtive sap.ui.test.actions.Drop action.

The Drag action targets the DOM focus reference of the control.


Constructor

new sap.ui.test.actions.Drag(sId?, mSettings?)
Param Type Default Value Description
sId? string

Optional ID for the new instance; generated automatically if no non-empty ID is given. Note: this can be omitted, no matter whether mSettings are given or not!

mSettings? object

Optional object with initial settings for the new instance

Borrowed Properties

Name Type Default Value Description
idSuffix string

Use this only if the target property or the default of the action does not work for your control. The id suffix of the DOM Element the press action will be executed on. For most of the controls you do not have to specify this, since the Control Adapters will find the correct DOM Element. But some controls have multiple DOM elements that could be target of your Action. Then you should set this property. For a detailed documentation of the suffix see sap.ui.core.Element#$

Since: 1.38.

Visibility: public

Methods Overview

Method Description
sap.ui.test.actions.Drag.extend

Creates a new subclass of class sap.ui.test.actions.Drag with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.test.actions.Action.extend.

sap.ui.test.actions.Drag.getMetadata

Returns a metadata object for class sap.ui.test.actions.Drag.

sap.ui.test.actions.Drag.extend

Creates a new subclass of class sap.ui.test.actions.Drag with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.ui.test.actions.Action.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.test.actions.Drag.getMetadata

Returns a metadata object for class sap.ui.test.actions.Drag.