The SideNavigation control is a container, which consists of flexible and fixed parts on top of each other. The flexible part adapts its size to the fixed one. The flexible part has a scrollbar when the content is larger than the available space. Whenever the height of the whole control is less than 256 pixels, the scrollbar becomes joint for the two parts.
Note: In order for the SideNavigation to stretch properly, its parent layout control should only be the sap.tnt.ToolPage.
Since: 1.34.
Event Summary
itemSelect(oControlEvent)Fired when an item is selected. Method Summary
sap.tnt.SideNavigation.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.tnt.SideNavigation with name sClassName
and enriches it with the information contained in oClassInfo
. attachItemSelect(oData?, fnFunction, oListener?)Attaches event handler fnFunction
to the itemSelect
event of this sap.tnt.SideNavigation
. bindItem(oBindingInfo)Binds aggregation item
to model data. destroyItem()Destroys the item in the aggregation item
. detachItemSelect(fnFunction, oListener)Detaches event handler fnFunction
from the itemSelect
event of this sap.tnt.SideNavigation
. fireItemSelect(mArguments?)Fires event itemSelect
to attached listeners. getFooter()Gets content of aggregation footer
. getItem()Gets content of aggregation item
. setFooter(oFooter)Sets the aggregated footer
. setItem(oItem)Sets the aggregated item
. unbindItem()Unbinds aggregation item
from model data. addStyleClass,
allowTextSelection,
attachBrowserEvent,
attachValidateFieldGroup,
checkFieldGroupIds,
clone,
detachBrowserEvent,
detachValidateFieldGroup,
fireValidateFieldGroup,
getAccessibilityInfo,
getBusy,
getBusyIndicatorDelay,
getControlsByFieldGroupId,
getFieldGroupIds,
getIdForLabel,
getRenderer,
getVisible,
hasStyleClass,
invalidate,
isBusy,
placeAt,
removeStyleClass,
rerender,
setBusy,
setBusyIndicatorDelay,
setFieldGroupIds,
setVisible,
toggleStyleClass,
triggerValidateFieldGroup $,
addCustomData,
addDependent,
addEventDelegate,
applyFocusInfo,
bindElement,
data,
destroy,
destroyCustomData,
destroyDependents,
destroyLayoutData,
destroyTooltip,
enhanceAccessibilityState,
findElements,
fireEvent,
focus,
getCustomData,
getDependents,
getDomRef,
getElementBinding,
getFocusDomRef,
getFocusInfo,
getInterface,
getLayoutData,
getMetadata,
getTooltip,
getTooltip_AsString,
getTooltip_Text,
indexOfCustomData,
indexOfDependent,
init,
insertCustomData,
insertDependent,
prop,
removeAllCustomData,
removeAllDependents,
removeCustomData,
removeDependent,
removeEventDelegate,
setLayoutData,
setTooltip,
toString,
unbindElement addAggregation,
addAssociation,
applySettings,
attachFormatError,
attachModelContextChange,
attachParseError,
attachValidationError,
attachValidationSuccess,
bindAggregation,
bindContext,
bindObject,
bindProperty,
destroyAggregation,
detachFormatError,
detachModelContextChange,
detachParseError,
detachValidationError,
detachValidationSuccess,
findAggregatedObjects,
fireFormatError,
fireModelContextChange,
fireParseError,
fireValidationError,
fireValidationSuccess,
getAggregation,
getAssociation,
getBinding,
getBindingContext,
getBindingInfo,
getBindingPath,
getEventingParent,
getId,
getModel,
getObjectBinding,
getOriginInfo,
getParent,
getProperty,
hasModel,
indexOfAggregation,
insertAggregation,
isBound,
isInvalidateSuppressed,
isTreeBinding,
propagateMessages,
removeAggregation,
removeAllAggregation,
removeAllAssociation,
removeAssociation,
setAggregation,
setAssociation,
setBindingContext,
setModel,
setProperty,
unbindAggregation,
unbindContext,
unbindObject,
unbindProperty,
validateAggregation,
validateProperty Constructor Detail
new sap.tnt.SideNavigation(sId?, mSettings?)
Constructor for a new SideNavigation.
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
- Aggregations
- item : sap.tnt.NavigationList (default)
- fixedItem : sap.tnt.NavigationList
- footer : sap.tnt.NavigationList
- Events
- itemSelect : 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.
Parameters:
{string} | sId? | ID for the new control, generated automatically if no ID is given |
{object} | mSettings? | Initial settings for the new control |
Event Detail
itemSelect(oControlEvent)
Fired when an item is selected.
Parameters:
Method Detail
sap.tnt.SideNavigation.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.tnt.SideNavigation 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.
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.tnt.SideNavigation.
Returns:
Attaches event handler
fnFunction
to the
itemSelect
event of this
sap.tnt.SideNavigation
.
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.tnt.SideNavigation
itself.
Fired when an item is selected.
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.tnt.SideNavigation itself |
Returns:
Parameters:
{object} | oBindingInfo | The binding information |
Returns:
Destroys the fixedItem in the aggregation fixedItem
.
Returns:
Destroys the footer in the aggregation footer
.
Returns:
Destroys the item in the aggregation item
.
Returns:
Detaches event handler
fnFunction
from the
itemSelect
event of this
sap.tnt.SideNavigation
.
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
itemSelect
to attached listeners.
Expects the following event parameters:
item
of type sap.ui.core.Item
The selected item.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
getExpanded(): boolean
Gets current value of property
expanded
.
Specifies if the control is expanded.
Default value is true
.
Returns:
{boolean} | Value of property expanded |
Gets content of aggregation
fixedItem
.
Defines the content inside the fixed part.
Returns:
Gets content of aggregation
footer
.
Defines the content inside the footer.
Returns:
Gets content of aggregation
item
.
Defines the content inside the flexible part.
Returns:
Sets the aggregated fixedItem
.
Parameters:
Returns:
Sets the aggregated footer
.
Parameters:
Returns:
Sets the aggregated item
.
Parameters:
Returns:
Unbinds aggregation item
from model data.
Returns: