sap.ui.ux3.QuickView.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.ux3.QuickView 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.commons.CalloutBase.extend.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
Returns a metadata object for class sap.ui.ux3.QuickView.
Returns:
Adds some action to the aggregation actions
.
Parameters:
Returns:
Adds some content to the aggregation content
.
Parameters:
Returns:
Attaches event handler
fnFunction
to the
actionSelected
event of this
sap.ui.ux3.QuickView
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.ux3.QuickView
itself.
Action is selected in Action Bar
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.QuickView itself |
Returns:
Attaches event handler
fnFunction
to the
feedSubmit
event of this
sap.ui.ux3.QuickView
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.ux3.QuickView
itself.
Fired when a new feed entry is submitted.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.QuickView itself |
Returns:
Attaches event handler
fnFunction
to the
navigate
event of this
sap.ui.ux3.QuickView
.
When called, the context of the event handler (its this
) will be bound to oListener
if specified, otherwise it will be bound to this sap.ui.ux3.QuickView
itself.
Event is fired when a user clicks on the firstTitle link. Call the preventDefault method of the event object to cancel browser navigation.
Parameters:
{object} | oData? | An application-specific payload object that will be passed to the event handler along with the event object when firing the event |
{function} | fnFunction | The function to be called when the event occurs |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.ui.ux3.QuickView itself |
Returns:
Destroys the actionBar in the aggregation actionBar
.
Returns:
Destroys all the actions in the aggregation actions
.
Returns:
Destroys all the content in the aggregation content
.
Returns:
Detaches event handler
fnFunction
from the
actionSelected
event of this
sap.ui.ux3.QuickView
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
feedSubmit
event of this
sap.ui.ux3.QuickView
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Detaches event handler
fnFunction
from the
navigate
event of this
sap.ui.ux3.QuickView
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
Returns:
Fires event
actionSelected
to attached listeners.
Expects the following event parameters:
id
of type string
Id of selected ThingActionaction
of type sap.ui.ux3.ThingAction
Selected ThingActionnewState
of type string
New State of the selected action. Only filled if the respective action maintains a state property, for example 'FollowUp' or 'Favorite'
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
feedSubmit
to attached listeners.
Expects the following event parameters:
text
of type string
Feed text
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
fireNavigate(mArguments?): boolean
Fires event
navigate
to attached listeners.
Listeners may prevent the default action of this event by using the preventDefault
-method on the event object.
Expects the following event parameters:
href
of type string
URI of the Thing Inspector application.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
{boolean} | Whether or not to prevent the default action |
Gets content of aggregation
actionBar
.
ActionBar. If no actionBar is set a default ActionBar will be created. In any case, ActionBar is displayed only when the showActionBar property is set to true.
Returns:
Gets content of aggregation
actions
.
Actions of a Thing
Returns:
Gets content of aggregation
content
.
Body content of the QuickView
Returns:
getFavoriteActionEnabled(): boolean
Gets current value of property
favoriteActionEnabled
.
Favorite action enabled/disabled. If disabled the action will be invisible.
Default value is true
.
Returns:
{boolean} | Value of property favoriteActionEnabled |
getFavoriteState(): boolean
Gets current value of property
favoriteState
.
State Of favorite Action
Default value is false
.
Returns:
{boolean} | Value of property favoriteState |
getFirstTitle(): string
Gets current value of property
firstTitle
.
Thing name shown in the header of the QuickView
Returns:
{string} | Value of property firstTitle |
getFirstTitleHref(): string
Gets current value of property
firstTitleHref
.
URI to Thing Inspector
Returns:
{string} | Value of property firstTitleHref |
getFlagActionEnabled(): boolean
Gets current value of property
flagActionEnabled
.
Flag action enabled/disabled. If disabled the action will be invisible.
Default value is true
.
Returns:
{boolean} | Value of property flagActionEnabled |
getFlagState(): boolean
Gets current value of property
flagState
.
State of Flag Action
Default value is false
.
Returns:
{boolean} | Value of property flagState |
getFollowActionEnabled(): boolean
Gets current value of property
followActionEnabled
.
Follow action enabled/disabled. If disabled the action will be invisible.
Default value is true
.
Returns:
{boolean} | Value of property followActionEnabled |
Gets current value of property
followState
.
Follow State of a Thing
Default value is Default
.
Returns:
Gets current value of property
icon
.
URI of the Thing icon image (mandatory). The image is scaled down to the maximal size of 32 pixel (vertical or horizontal).
Returns:
getOpenActionEnabled(): boolean
Gets current value of property
openActionEnabled
.
Open Thing action enabled/disabled. If disabled the action will be invisible.
Default value is true
.
Returns:
{boolean} | Value of property openActionEnabled |
getSecondTitle(): string
Gets current value of property
secondTitle
.
Optional short text shown under the firstTitle
Returns:
{string} | Value of property secondTitle |
getShowActionBar(): boolean
Gets current value of property
showActionBar
.
Show Action Bar
Default value is true
.
Returns:
{boolean} | Value of property showActionBar |
getType(): string
Gets current value of property
type
.
Thing type (mandatory) like Account, Material, Employee etc. is displayed in a header at the top part of the QuickView.
Returns:
{string} | Value of property type |
getUpdateActionEnabled(): boolean
Gets current value of property
updateActionEnabled
.
Update action enabled/disabled. If disabled the action will be invisible.
Default value is true
.
Returns:
{boolean} | Value of property updateActionEnabled |
Gets current value of property
width
.
Control width as common CSS-size (px or % as unit, for example).
Returns:
indexOfAction(oAction): int
Checks for the provided sap.ui.ux3.ThingAction
in the aggregation actions
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
indexOfContent(oContent): int
Checks for the provided sap.ui.core.Element
in the aggregation content
. and returns its index if found or -1 otherwise.
Parameters:
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a action into the aggregation actions
.
Parameters:
{sap.ui.ux3.ThingAction} | oAction | the action to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the action should be inserted at; for a negative value of iIndex , the action is inserted at position 0; for a value greater than the current size of the aggregation, the action is inserted at the last position |
Returns:
Inserts a content into the aggregation content
.
Parameters:
{sap.ui.core.Element} | oContent | the content to insert; if empty, nothing is inserted |
{int} | iIndex | the 0 -based index the content should be inserted at; for a negative value of iIndex , the content is inserted at position 0; for a value greater than the current size of the aggregation, the content is inserted at the last position |
Returns:
Removes a action from the aggregation actions
.
Parameters:
Returns:
Removes all the controls from the aggregation
actions
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes all the controls from the aggregation
content
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
Removes a content from the aggregation content
.
Parameters:
Returns:
Sets the aggregated actionBar
.
Parameters:
Returns:
Sets a new value for property
favoriteActionEnabled
.
Favorite action enabled/disabled. If disabled the action will be invisible.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bFavoriteActionEnabled | New value for property favoriteActionEnabled |
Returns:
Sets a new value for property
favoriteState
.
State Of favorite Action
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bFavoriteState | New value for property favoriteState |
Returns:
Sets a new value for property
firstTitle
.
Thing name shown in the header of the QuickView
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sFirstTitle | New value for property firstTitle |
Returns:
Sets a new value for property
firstTitleHref
.
URI to Thing Inspector
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sFirstTitleHref | New value for property firstTitleHref |
Returns:
Sets a new value for property
flagActionEnabled
.
Flag action enabled/disabled. If disabled the action will be invisible.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bFlagActionEnabled | New value for property flagActionEnabled |
Returns:
Sets a new value for property
flagState
.
State of Flag Action
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is false
.
Parameters:
{boolean} | bFlagState | New value for property flagState |
Returns:
Sets a new value for property
followActionEnabled
.
Follow action enabled/disabled. If disabled the action will be invisible.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bFollowActionEnabled | New value for property followActionEnabled |
Returns:
Sets a new value for property
followState
.
Follow State of a Thing
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Default
.
Parameters:
Returns:
Sets a new value for property
icon
.
URI of the Thing icon image (mandatory). The image is scaled down to the maximal size of 32 pixel (vertical or horizontal).
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
Returns:
Sets a new value for property
openActionEnabled
.
Open Thing action enabled/disabled. If disabled the action will be invisible.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bOpenActionEnabled | New value for property openActionEnabled |
Returns:
Sets a new value for property
secondTitle
.
Optional short text shown under the firstTitle
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sSecondTitle | New value for property secondTitle |
Returns:
Sets a new value for property
showActionBar
.
Show Action Bar
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bShowActionBar | New value for property showActionBar |
Returns:
Sets a new value for property
type
.
Thing type (mandatory) like Account, Material, Employee etc. is displayed in a header at the top part of the QuickView.
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{string} | sType | New value for property type |
Returns:
Sets a new value for property
updateActionEnabled
.
Update action enabled/disabled. If disabled the action will be invisible.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
Parameters:
{boolean} | bUpdateActionEnabled | New value for property updateActionEnabled |
Returns:
Sets a new value for property
width
.
Control width as common CSS-size (px or % as unit, for example).
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
Returns: