Class sap.ca.ui.ZoomableScrollContainerModule: sap/ca/ui/ZoomableScrollContainer
Based on a ScrollContainer, it allows you to pinch and zoom on mobile devices
Deprecated API:Since version 1.22.
ZoomableScrollContainer is used in PictureViewer control and is not meant to be consumed outside of PictureViewer usage. PictureViewer was replacing the Carousel as it wasn't supporting some versions of MS Internet Explorer. Now, the sap.m.Carousel is fully functional, please use sap.m.Carousel instead. This control will not be supported anymore.
sClassName
and enriches it with the information contained in oClassInfo
. 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
- zoomable : boolean (default: true)
- initialScale : float (default: 1)
- minScale : float (default: 1)
- maxScale : float (default: 4)
- Aggregations
- Associations
- Events
In addition, all settings applicable to the base type sap.m.ScrollContainer 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.22.
ZoomableScrollContainer is used in PictureViewer control and is not meant to be consumed outside of PictureViewer usage. PictureViewer was replacing the Carousel as it wasn't supporting some versions of MS Internet Explorer. Now, the sap.m.Carousel is fully functional, please use sap.m.Carousel instead. This control will not be supported anymore.
sClassName
and enriches it with the information contained in oClassInfo
. oClassInfo
might contain the same kind of informations as described in Element.extend.
{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. |
{function} | the created class / constructor function |
{sap.ui.base.Metadata} | Metadata object describing this class |
initialScale
. Initial scaling factor Default value is 1
{float} | the value of property initialScale |
maxScale
. Highest scaling factor allowed Default value is 4
{float} | the value of property maxScale |
minScale
. Lowest scaling factor allowed Default value is 1
{float} | the value of property minScale |
zoomable
. Activate or not the zooming functionality. If FALSE, it acts exactly as a basic ScrollContainer. Default value is true
{boolean} | the value of property zoomable |
initialScale
. Default value is 1
{float} | fInitialScale | new value for property initialScale |
{sap.ca.ui.ZoomableScrollContainer} | this to allow method chaining |
maxScale
. Default value is 4
{float} | fMaxScale | new value for property maxScale |
{sap.ca.ui.ZoomableScrollContainer} | this to allow method chaining |
minScale
. Default value is 1
{float} | fMinScale | new value for property minScale |
{sap.ca.ui.ZoomableScrollContainer} | this to allow method chaining |
zoomable
. Default value is true
{boolean} | bZoomable | new value for property zoomable |
{sap.ca.ui.ZoomableScrollContainer} | this to allow method chaining |