Class sap.ui.ux3.ActionBarModule: sap/ui/ux3/ActionBar
A special toolbar with predefined social actions which can be shown as needed. These are: Create an update (Feed), Follow, Mark for Follow Up, Mark as Favorite and Open Thing.
In addition business actions (ThingAction instances) can be added which are either displayed as MenuItems of the 'More' menu button or as individual tool bar buttons.
When using this control, please be aware that it fulfills rather specific requirements: it has been designed for and is used within composite controls QuickView and ThingInspector.
Deprecated API:Since version 1.38. Instead, use the sap.m.Toolbar
or sap.m.OverflowToolbar
control.
sClassName
and enriches it with the information contained in oClassInfo
.fnFunction
to the actionSelected
event of this sap.ui.ux3.ActionBar
.fnFunction
to the feedSubmit
event of this sap.ui.ux3.ActionBar
.fnFunction
from the actionSelected
event of this sap.ui.ux3.ActionBar
.fnFunction
from the feedSubmit
event of this sap.ui.ux3.ActionBar
.sap.ui.ux3.ThingAction
in the aggregation businessActions
. Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- followState : sap.ui.ux3.FollowActionState (default: Default)
- flagState : boolean
- favoriteState : boolean
- updateState : boolean
- thingIconURI : sap.ui.core.URI
- alwaysShowMoreMenu : boolean (default: true)
- showUpdate : boolean (default: true)
- showFollow : boolean (default: true)
- showFlag : boolean (default: true)
- showFavorite : boolean (default: true)
- showOpen : boolean (default: true)
- dividerWidth : sap.ui.core.CSSSize
- Aggregations
- businessActions : sap.ui.ux3.ThingAction[]
- Events
- actionSelected : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
- feedSubmit : fnListenerFunction or [fnListenerFunction, oListenerObject] or [oData, fnListenerFunction, oListenerObject]
In addition, all settings applicable to the base type sap.ui.core.Control can be used as well.
{string} | sId? | id for the new control, generated automatically if no id is given |
{object} | mSettings? | initial settings for the new control |
- Deprecated:
- Since version 1.38. Instead, use the
sap.m.Toolbar
orsap.m.OverflowToolbar
control.
For ‘Update’, please refer to event ‘feedSubmit’
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{string} | oControlEvent.getParameters.id | Id of selected ThingAction |
{sap.ui.ux3.ThingAction} | oControlEvent.getParameters.action | Selected ThingAction |
{string} | oControlEvent.getParameters.newState | New State of the selected action.Only filled if the respective action maintains a state property, for example 'FollowUp' or 'Favorite' |
{sap.ui.base.Event} | oControlEvent | |
{sap.ui.base.EventProvider} | oControlEvent.getSource | |
{object} | oControlEvent.getParameters | |
{string} | oControlEvent.getParameters.text | Feed text |
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.
{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 |
{function} | Created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
fnFunction
to the actionSelected
event of this sap.ui.ux3.ActionBar
. 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.ActionBar
itself.
Fired when any of the social action’s toolbar buttons except ‘Update’ or any of the business action’s menu items resp. buttons is pressed. The selected action can be identified by its id and newState (the latter if applicable only) ‘Follow’ button + menu: id: follow, newState: Follow/Hold/Default ‘Mark for follow up’ button: id: flag, newState: true/false ‘Favorite’ button: id: favorite, newState: true/false ‘Open Thing Inspector’ button id: open Business Actions: id: the ThingAction id
For ‘Update’, please refer to event ‘feedSubmit’
{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.ActionBar itself |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
fnFunction
to the feedSubmit
event of this sap.ui.ux3.ActionBar
. 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.ActionBar
itself.
Fired when a new feed entry is submitted.
{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.ActionBar itself |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
fnFunction
from the actionSelected
event of this sap.ui.ux3.ActionBar
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
fnFunction
from the feedSubmit
event of this sap.ui.ux3.ActionBar
. The passed function and listener object must match the ones used for event registration.
{function} | fnFunction | The function to be called, when the event occurs |
{object} | oListener | Context object on which the given function had to be called |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
actionSelected
to attached listeners. Expects the following event parameters:
id
of typestring
Id of selected ThingActionaction
of typesap.ui.ux3.ThingAction
Selected ThingActionnewState
of typestring
New State of the selected action.Only filled if the respective action maintains a state property, for example 'FollowUp' or 'Favorite'
{Map} | mArguments? | The arguments to pass along with the event |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
feedSubmit
to attached listeners. Expects the following event parameters:
text
of typestring
Feed text
{Map} | mArguments? | The arguments to pass along with the event |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
alwaysShowMoreMenu
. If true, business actions are rendered as menu items of the 'More' menu button. Otherwise, 'More' menu button is only displayed for overflow and business actions are rendered as inidividual buttons.
Default value is true
.
{boolean} | Value of property alwaysShowMoreMenu |
businessActions
. Displayed on the actionBar's right hand-side, either as menu item under 'More' or as individual buttons
{sap.ui.ux3.ThingAction[]} |
dividerWidth
. The minimum width of ActionBar's the social actions part: business action controls have to be rendered outside this area
{sap.ui.core.CSSSize} | Value of property dividerWidth |
favoriteState
. Indicates whether “Favorite” is active
{boolean} | Value of property favoriteState |
flagState
. Indicates whether “Mark for Follow Up” is active
{boolean} | Value of property flagState |
followState
. Keeps track of the actionBars Follow/Unfollow button’s state. Its value is one of - FollowActionState.Default - FollowActionState.Follow - FollowActionState.Hold
Default value is Default
.
{sap.ui.ux3.FollowActionState} | Value of property followState |
showFavorite
. Indicates whether social action “Favorite” is shown, default is ‘true’
Default value is true
.
{boolean} | Value of property showFavorite |
showFlag
. Indicates whether social action “Mark for Follow Up” is shown, default is ‘true’
Default value is true
.
{boolean} | Value of property showFlag |
showFollow
. Indicates whether social action “Follow” is shown, default is ‘true’
Default value is true
.
{boolean} | Value of property showFollow |
showOpen
. Indicates whether social action “Open” is shown, default is ‘true’
Default value is true
.
{boolean} | Value of property showOpen |
showUpdate
. Indicates whether social action “Update” is shown, default is ‘true’
Default value is true
.
{boolean} | Value of property showUpdate |
thingIconURI
. The thing icon uri. Icon will be displayed in Feeder
{sap.ui.core.URI} | Value of property thingIconURI |
updateState
. Indicates whether “Update” is active
{boolean} | Value of property updateState |
sap.ui.ux3.ThingAction
in the aggregation businessActions
. and returns its index if found or -1 otherwise. {sap.ui.ux3.ThingAction} | oBusinessAction | The businessAction whose index is looked for |
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
{boolean} | True if the control is still in the active DOM |
alwaysShowMoreMenu
. If true, business actions are rendered as menu items of the 'More' menu button. Otherwise, 'More' menu button is only displayed for overflow and business actions are rendered as inidividual buttons.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bAlwaysShowMoreMenu | New value for property alwaysShowMoreMenu |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
dividerWidth
. The minimum width of ActionBar's the social actions part: business action controls have to be rendered outside this area
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.CSSSize} | sDividerWidth | New value for property dividerWidth |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
favoriteState
. Indicates whether “Favorite” is active
When called with a value of null
or undefined
, the default value of the property will be restored.
{boolean} | bFavoriteState | New value for property favoriteState |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
flagState
. Indicates whether “Mark for Follow Up” is active
When called with a value of null
or undefined
, the default value of the property will be restored.
{boolean} | bFlagState | New value for property flagState |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
followState
. Keeps track of the actionBars Follow/Unfollow button’s state. Its value is one of - FollowActionState.Default - FollowActionState.Follow - FollowActionState.Hold
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is Default
.
{sap.ui.ux3.FollowActionState} | sFollowState | New value for property followState |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
showFavorite
. Indicates whether social action “Favorite” is shown, default is ‘true’
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bShowFavorite | New value for property showFavorite |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
showFlag
. Indicates whether social action “Mark for Follow Up” is shown, default is ‘true’
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bShowFlag | New value for property showFlag |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
showFollow
. Indicates whether social action “Follow” is shown, default is ‘true’
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bShowFollow | New value for property showFollow |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
showOpen
. Indicates whether social action “Open” is shown, default is ‘true’
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bShowOpen | New value for property showOpen |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
showUpdate
. Indicates whether social action “Update” is shown, default is ‘true’
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bShowUpdate | New value for property showUpdate |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
thingIconURI
. The thing icon uri. Icon will be displayed in Feeder
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.core.URI} | sThingIconURI | New value for property thingIconURI |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |
updateState
. Indicates whether “Update” is active
When called with a value of null
or undefined
, the default value of the property will be restored.
{boolean} | bUpdateState | New value for property updateState |
{sap.ui.ux3.ActionBar} | Reference to this in order to allow method chaining |