A semantic-specific button, eligible for the positiveAction
aggregation of the sap.f.semantic.SemanticPage to be placed in its footer.
Constructor for a new PositiveAction
.
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.f.semantic.PositiveAction(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 |
Method | Description |
---|---|
sap.f.semantic.PositiveAction.extend |
Creates a new subclass of class sap.f.semantic.PositiveAction with name
|
sap.f.semantic.PositiveAction.getMetadata |
Returns a metadata object for class sap.f.semantic.PositiveAction. |
getText |
Gets current value of property text. Defines |
setText |
Sets a new value for property text. Defines When called with a value of |
Creates a new subclass of class sap.f.semantic.PositiveAction with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.f.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 |
Returns a metadata object for class sap.f.semantic.PositiveAction.
Gets current value of property text.
Defines PositiveAction
text. Note: the default text is "Accept"
Sets a new value for property text.
Defines PositiveAction
text. Note: the default text is "Accept"
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 |