A control that is used as a child of ProductSwitch
Note: ProductSwitchItem
is not supported when used outside of ProductSwitch
.
Constructor for a new ProductSwitchItem
.
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.ProductSwitchItem(sId?, mSettings?)
Param | Type | Default Value | Description |
---|---|---|---|
sId? | string | ID for the new control, generated automatically if no ID is given |
|
mSettings? | object | Initial settings for the new control |
Name | Type | Default Value | Description |
---|---|---|---|
src | sap.ui.core.URI | Defines the icon to be displayed as graphical element within the |
|
subTitle | string | Determines the subtitle of the |
|
target | string | Specifies a target where the Options are the standard values for window.open() supported by browsers: |
|
targetSrc | sap.ui.core.URI | Defines the |
|
title | string | Determines the title of the |
Default Aggregation:
Name | Cardinality | Type | Description |
---|---|---|---|
_icon | 0..1 | sap.ui.core.Icon |
Holds the internally created Icon. |
_title | 0..1 | sap.m.Text |
Holds the internally created Text. |
Method | Description |
---|---|
sap.f.ProductSwitchItem.extend |
Creates a new subclass of class sap.f.ProductSwitchItem with name
|
sap.f.ProductSwitchItem.getMetadata |
Returns a metadata object for class sap.f.ProductSwitchItem. |
getSrc |
Gets current value of property src. Defines the icon to be displayed as graphical element within the |
getSubTitle |
Gets current value of property subTitle. Determines the subtitle of the |
getTarget |
Gets current value of property target. Specifies a target where the Options are the standard values for window.open() supported by browsers: |
getTargetSrc |
Gets current value of property targetSrc. Defines the |
getTitle |
Gets current value of property title. Determines the title of the |
setSrc |
Sets a new value for property src. Defines the icon to be displayed as graphical element within the When called with a value of |
setSubTitle |
Sets a new value for property subTitle. Determines the subtitle of the When called with a value of |
setTarget |
Sets a new value for property target. Specifies a target where the Options are the standard values for window.open() supported by browsers: When called with a value of |
setTargetSrc |
Sets a new value for property targetSrc. Defines the When called with a value of |
setTitle |
Sets a new value for property title. Determines the title of the When called with a value of |
Creates a new subclass of class sap.f.ProductSwitchItem 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.core.Control.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 |
Gets current value of property src.
Defines the icon to be displayed as graphical element within the ProductSwitchItem
. It can be an icon from the SAP icon font.
Gets current value of property subTitle.
Determines the subtitle of the ProductSwitchItem
.
Gets current value of property target.
Specifies a target where the targetSrc
content must be open.
Options are the standard values for window.open() supported by browsers: _self
, _top
, _blank
, _parent
, _search
. Alternatively, a frame name can be entered.
Gets current value of property targetSrc.
Defines the ProductSwitchItem
target URI. Supports standard hyperlink behavior.
Sets a new value for property src.
Defines the icon to be displayed as graphical element within the ProductSwitchItem
. It can be an icon from the SAP icon font.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sSrc | sap.ui.core.URI |
New value for property |
Sets a new value for property subTitle.
Determines the subtitle of the ProductSwitchItem
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sSubTitle | string |
New value for property |
Sets a new value for property target.
Specifies a target where the targetSrc
content must be open.
Options are the standard values for window.open() supported by browsers: _self
, _top
, _blank
, _parent
, _search
. Alternatively, a frame name can be entered.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sTarget | string |
New value for property |
Sets a new value for property targetSrc.
Defines the ProductSwitchItem
target URI. Supports standard hyperlink behavior.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sTargetSrc | sap.ui.core.URI |
New value for property |
Sets a new value for property title.
Determines the title of the ProductSwitchItem
.
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sTitle | string |
New value for property |