class sap.f.ProductSwitchItem

Control sample: sap.f.ProductSwitchItem
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/f/ProductSwitchItem
Application Component: CA-UI5-CTR

A control that is used as a child of ProductSwitch

Note: ProductSwitchItem is not supported when used outside of ProductSwitch.


Constructor

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


Properties

Name Type Default Value Description
src sap.ui.core.URI

Defines the icon to be displayed as graphical element within the ProductSwitchItem. It can be an icon from the SAP icon font.

Visibility: public
subTitle string

Determines the subtitle of the ProductSwitchItem.

Visibility: public
target string

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.

Visibility: public
targetSrc sap.ui.core.URI

Defines the ProductSwitchItem target URI. Supports standard hyperlink behavior.

Visibility: public
title string

Determines the title of the ProductSwitchItem.

Visibility: public

Aggregations

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.


Methods Overview

Method Description
sap.f.ProductSwitchItem.extend

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.

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 ProductSwitchItem. It can be an icon from the SAP icon font.

getSubTitle

Gets current value of property subTitle.

Determines the subtitle of the ProductSwitchItem.

getTarget

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.

getTargetSrc

Gets current value of property targetSrc.

Defines the ProductSwitchItem target URI. Supports standard hyperlink behavior.

getTitle

Gets current value of property title.

Determines the title of the ProductSwitchItem.

setSrc

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.

setSubTitle

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.

setTarget

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.

setTargetSrc

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.

setTitle

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.

sap.f.ProductSwitchItem.extend

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

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 ProductSwitchItem. It can be an icon from the SAP icon font.

getSubTitle

Gets current value of property subTitle.

Determines the subtitle of the ProductSwitchItem.

getTarget

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.

getTargetSrc

Gets current value of property targetSrc.

Defines the ProductSwitchItem target URI. Supports standard hyperlink behavior.

getTitle

Gets current value of property title.

Determines the title of the ProductSwitchItem.

setSrc

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 src

setSubTitle

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 subTitle

setTarget

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 target

setTargetSrc

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 targetSrc

setTitle

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 title