sap.m.TileContainer.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.m.TileContainer 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.m.TileContainer.
Returns:
Adds a Tile to the end of the tiles collection.
Parameters:
Returns:
Attaches event handler
fnFunction
to the
tileAdd
event of this
sap.m.TileContainer
.
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.m.TileContainer
itself.
Fires when a Tile is added.
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.m.TileContainer itself |
Returns:
Attaches event handler
fnFunction
to the
tileDelete
event of this
sap.m.TileContainer
.
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.m.TileContainer
itself.
Fires if a Tile is deleted in Edit mode.
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.m.TileContainer itself |
Returns:
Attaches event handler
fnFunction
to the
tileMove
event of this
sap.m.TileContainer
.
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.m.TileContainer
itself.
Fires if a Tile is moved.
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.m.TileContainer itself |
Returns:
Deletes a Tile.
Parameters:
Returns:
Destroys all the tiles in the aggregation tiles
.
Returns:
Detaches event handler
fnFunction
from the
tileAdd
event of this
sap.m.TileContainer
.
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
tileDelete
event of this
sap.m.TileContainer
.
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
tileMove
event of this
sap.m.TileContainer
.
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 tileAdd
to attached listeners.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
tileDelete
to attached listeners.
Expects the following event parameters:
tile
of type sap.m.Tile
The deleted Tile.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
Fires event
tileMove
to attached listeners.
Expects the following event parameters:
tile
of type sap.m.Tile
The Tile that has been moved.newIndex
of type int
The new index of the Tile in the tiles aggregation.
Parameters:
{Map} | mArguments? | The arguments to pass along with the event |
Returns:
getAllowAdd(): boolean
Gets current value of property
allowAdd
.
Determines whether the user is allowed to add Tiles in Edit mode (editable = true).
Returns:
{boolean} | Value of property allowAdd |
getEditable(): boolean
Gets current value of property
editable
.
Determines whether the TileContainer is editable so you can move, delete or add tiles.
Returns:
{boolean} | Value of property editable |
Gets current value of property
height
.
Defines the height of the TileContainer in px.
Default value is 100%
.
Returns:
getPageFirstTileIndex(): int
Returns the index of the first Tile visible in the current page.
Returns:
{int} | The index of the first Tile that is visible in the current page |
Gets content of aggregation
tiles
.
The Tiles to be displayed by the TileContainer.
Returns:
Gets current value of property
width
.
Defines the width of the TileContainer in px.
Default value is 100%
.
Returns:
indexOfTile(oTile): int
Checks for the provided sap.m.Tile
in the aggregation tiles
. and returns its index if found or -1 otherwise.
Parameters:
{sap.m.Tile} | oTile | The tile whose index is looked for |
Returns:
{int} | The index of the provided control in the aggregation if found, or -1 otherwise |
Inserts a Tile to the given index.
Parameters:
{sap.m.Tile} | oTile | The Tile to insert |
{int} | iIndex | The new Tile position in the tiles aggregation |
Returns:
Moves a given Tile to the given index.
Parameters:
{sap.m.Tile} | vTile | The tile to move |
{int} | iNewIndex | The new Tile position in the tiles aggregation |
Returns:
Removes all the controls from the aggregation
tiles
.
Additionally, it unregisters them from the hosting UIArea.
Returns:
{sap.m.Tile[]} | An array of the removed elements (might be empty) |
Removes a tile from the aggregation tiles
.
Parameters:
{int|string|sap.m.Tile} | vTile | The tileto remove or its index or id |
Returns:
scrollIntoView(vTile, bAnimated)
Scrolls to the page where the given Tile or tile index is included. Optionally this can be done animated or not. With IE9 the scroll is never animated.
Parameters:
{sap.m.Tile|int} | vTile | The Tile or tile index to be scrolled into view |
{boolean} | bAnimated | Whether the scroll should be animated |
scrollLeft()
Scrolls one page to the left.
scrollRight()
Scrolls one page to the right.
Sets a new value for property
allowAdd
.
Determines whether the user is allowed to add Tiles in Edit mode (editable = true).
When called with a value of null
or undefined
, the default value of the property will be restored.
Parameters:
{boolean} | bAllowAdd | New value for property allowAdd |
Returns:
Sets the editable property to the TileContainer, allowing to move icons. This is currently also set with a long tap.
Parameters:
{boolean} | bValue | Whether the container is in edit mode or not |
Returns:
Sets a new value for property
height
.
Defines the height of the TileContainer in px.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
Parameters:
Returns:
Sets a new value for property
width
.
Defines the width of the TileContainer in px.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is 100%
.
Parameters:
Returns: