class sap.m.semantic.NegativeAction

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/m/semantic/NegativeAction
Application Component: CA-UI5-CTR

A NegativeAction button has default semantic-specific properties and is eligible for aggregation content of a sap.m.semantic.SemanticPage.


Constructor

Constructor for a new NegativeAction.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.m.semantic.NegativeAction(sId?, mSettings?)
Param Type Default Value Description
sId? string

id for the new control, generated automatically if no id is given

mSettings? object

Optional initial settings for the new control: a map/JSON-object with initial property values, event listeners etc. for the new object


Properties

Name Type Default Value Description
text string

Button text

Visibility: public

Borrowed Properties

Name Type Default Value Description
enabled boolean true

See sap.m.Button#enabled

Visibility: public
visible boolean true

See sap.ui.core.Control#visible

Visibility: public

Methods Overview

Method Description
sap.m.semantic.NegativeAction.extend

Creates a new subclass of class sap.m.semantic.NegativeAction with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.m.semantic.SemanticButton.extend.

sap.m.semantic.NegativeAction.getMetadata

Returns a metadata object for class sap.m.semantic.NegativeAction.

getText

Gets current value of property text.

Button text

setText

Sets a new value for property text.

Button text

When called with a value of null or undefined, the default value of the property will be restored.

sap.m.semantic.NegativeAction.extend

Creates a new subclass of class sap.m.semantic.NegativeAction with name sClassName and enriches it with the information contained in oClassInfo.

oClassInfo might contain the same kind of information as described in sap.m.semantic.SemanticButton.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.m.semantic.NegativeAction.getMetadata

Returns a metadata object for class sap.m.semantic.NegativeAction.

getText

Gets current value of property text.

Button text

setText

Sets a new value for property text.

Button text

When called with a value of null or undefined, the default value of the property will be restored.

Param Type DefaultValue Description
sText string

New value for property text