A configuration control defining how the content of the sap.suite.ui.commons.ViewRepeater control is displayed and what data is bound.
Deprecated API:Since version 1.32. Deprecated. Standard Fiori technology should be used.
Method Summary
setIcon(sIcon)Setter for property icon
. setPath(sPath)Setter for property path
. setTemplate(oTemplate)Setter for the aggregated template
. setTitle(sTitle)Setter for property title
. addStyleClass,
allowTextSelection,
attachBrowserEvent,
attachValidateFieldGroup,
checkFieldGroupIds,
clone,
detachBrowserEvent,
detachValidateFieldGroup,
fireValidateFieldGroup,
getAccessibilityInfo,
getBusy,
getBusyIndicatorDelay,
getControlsByFieldGroupId,
getFieldGroupIds,
getIdForLabel,
getRenderer,
getVisible,
hasStyleClass,
invalidate,
isBusy,
onAfterRendering,
onBeforeRendering,
placeAt,
removeStyleClass,
rerender,
setBusy,
setBusyIndicatorDelay,
setFieldGroupIds,
setVisible,
toggleStyleClass,
triggerValidateFieldGroup $,
addCustomData,
addDependent,
addEventDelegate,
applyFocusInfo,
bindElement,
data,
destroy,
destroyCustomData,
destroyDependents,
destroyLayoutData,
destroyTooltip,
enhanceAccessibilityState,
exit,
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.suite.ui.commons.RepeaterViewConfiguration(sId?, mSettings?)
Constructor for a new RepeaterViewConfiguration.
Accepts an object literal mSettings
that defines initial property values, aggregated and associated objects as well as event handlers.
If the name of a setting is ambiguous (e.g. a property has the same name as an event), then the framework assumes property, aggregation, association, event in that order. To override this automatic resolution, one of the prefixes "aggregation:", "association:" or "event:" can be added to the name of the setting (such a prefixed name must be enclosed in single or double quotes).
The supported settings are:
- Properties
- Aggregations
- Associations
- Events
Parameters:
{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.32. Deprecated. Standard Fiori technology should be used.
Method Detail
sap.suite.ui.commons.RepeaterViewConfiguration.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.commons.RepeaterViewConfiguration with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of informations as described in Element.extend.
Parameters:
{string} | sClassName | name of the class to be created |
{object} | oClassInfo? | object literal with informations about the class |
{function} | FNMetaImpl? | constructor function for the metadata object. If not given, it defaults to sap.ui.core.ElementMetadata. |
Returns:
{function} | the created class / constructor function |
Returns a metadata object for class sap.suite.ui.commons.RepeaterViewConfiguration.
Returns:
Destroys the externalRepresentation in the aggregation named externalRepresentation
.
Returns:
Destroys the template in the aggregation named template
.
Returns:
getExternal(): boolean
Getter for property
external
. Indicates if the external representation of this view is rendered instead of the row repeater's own content.
Default value is false
Returns:
{boolean} | the value of property external |
Getter for aggregation externalRepresentation
.
The control to be rendered instead of sap.suite.ui.commons.ViewRepeater's own content. Only used if the "external" property is set to true. This allows you to create custom views, for example, Table views. The sap.suite.ui.commons.ViewRepeater control will share its model with this control if the control does not have its own model.
Returns:
Getter for property
icon
. A path to the icon representing this view in sap.suite.ui.commons.ViewRepeater view selector.
Default value is empty/undefined
Returns:
Getter for property
iconHovered
. A path to the icon representing this view in sap.suite.ui.commons.ViewRepeater view selector when the regular icon is hovered.
Default value is empty/undefined
Returns:
Getter for property
iconSelected
. A path to the icon representing this view in sap.suite.ui.commons.ViewRepeater view selector when the regular icon is selected.
Default value is empty/undefined
Returns:
getItemHeight(): int
Getter for property
itemHeight
. The height of the tile in this view in pixels. Only applicable if the responsive property is set to true. This value is used for calculating the number of tile rows.
Default value is empty/undefined
Returns:
{int} | the value of property itemHeight |
getItemMinWidth(): int
Getter for property
itemMinWidth
. The minimal width of the tile in this view. Only applicable if "responsive" property is set to true.
Default value is -1
Returns:
{int} | the value of property itemMinWidth |
getNumberOfTiles(): int
Getter for property
numberOfTiles
. The number of tiles/rows that will be shown on a single page in this view.
Default value is -1
Returns:
{int} | the value of property numberOfTiles |
getPath(): string
Getter for property
path
. A path used for rows/titles data binding.
Default value is empty/undefined
Returns:
{string} | the value of property path |
getResponsive(): any
Getter for property
responsive
. This parameter indicates whether the content is shown in rows or tiles. If false, the content is shown in rows just like in core sap.ui.commons.RowRepeater. If true, the content is shown in tiles (similar to sap.ui.ux3.DataSet control) that have minimal width defined by the "itemMinWidth" property. The number of columns depends on the parent control's width. If you resize the control, the number of columns may change respectively so that the content tiles can fill the entire space of a row.
Default value is false
Returns:
{any} | the value of property responsive |
Getter for aggregation template
.
The control used as a template while displaying rows/tiles in this view. It should not have fixed width wider than defined by the "itemMinWidth" property, otherwise some content may appear cropped.
Returns:
getTitle(): string
Getter for property
title
. The title of the view to be displayed in sap.suite.ui.commons.ViewRepeater view selector. If neither this nor "icon" property are defined, the default title "View ##" will be shown, where ## is an index number of the view in View Repeater starting from 1.
Default value is empty/undefined
Returns:
{string} | the value of property title |
Setter for property
external
.
Default value is false
Parameters:
{boolean} | bExternal | new value for property external |
Returns:
Setter for the aggregated externalRepresentation
.
Parameters:
Returns:
Setter for property
icon
.
Default value is empty/undefined
Parameters:
Returns:
Setter for property
iconHovered
.
Default value is empty/undefined
Parameters:
Returns:
Setter for property
iconSelected
.
Default value is empty/undefined
Parameters:
Returns:
Setter for property
itemHeight
.
Default value is empty/undefined
Parameters:
{int} | iItemHeight | new value for property itemHeight |
Returns:
Setter for property
itemMinWidth
.
Default value is -1
Parameters:
{int} | iItemMinWidth | new value for property itemMinWidth |
Returns:
Setter for property
numberOfTiles
.
Default value is -1
Parameters:
{int} | iNumberOfTiles | new value for property numberOfTiles |
Returns:
Setter for property
path
.
Default value is empty/undefined
Parameters:
{string} | sPath | new value for property path |
Returns:
Setter for property
responsive
.
Default value is false
Parameters:
{any} | oResponsive | new value for property responsive |
Returns:
Setter for the aggregated template
.
Parameters:
Returns:
Setter for property
title
.
Default value is empty/undefined
Parameters:
{string} | sTitle | new value for property title |
Returns: