class sap.m.QuickViewGroup

Control sample: sap.m.QuickViewGroup
Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/m/QuickViewGroup
Application Component: CA-UI5-CTR

QuickViewGroup consists of a title (optional) and an entity of group elements.


Constructor

Constructor for a new QuickViewGroup.

Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject#constructor for a general description of the syntax of the settings object.

new sap.m.QuickViewGroup(sId?, mSettings?)
Param Type Default Value Description
sId? string

ID for the new control, generated automatically if no ID is given

mSettings? object

Initial settings for the new control


Properties

Name Type Default Value Description
heading string empty string

The title of the group

Visibility: public
visible boolean true

Determines whether the group is visible on the screen.

Visibility: public

Aggregations

Default Aggregation: elements

Name Cardinality Type Description
elements (default) 0..n sap.m.QuickViewGroupElement

A combination of one label and another control (Link or Text) associated to this label.


Methods Overview

Method Description
addElement

Adds some element to the aggregation elements.

bindElements

Binds aggregation elements to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

destroyElements

Destroys all the elements in the aggregation elements.

sap.m.QuickViewGroup.extend

Creates a new subclass of class sap.m.QuickViewGroup 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.Element.extend.

getElements

Gets content of aggregation elements.

A combination of one label and another control (Link or Text) associated to this label.

getHeading

Gets current value of property heading.

The title of the group

Default value is empty string.

sap.m.QuickViewGroup.getMetadata

Returns a metadata object for class sap.m.QuickViewGroup.

getVisible

Gets current value of property visible.

Determines whether the group is visible on the screen.

Default value is true.

indexOfElement

Checks for the provided sap.m.QuickViewGroupElement in the aggregation elements. and returns its index if found or -1 otherwise.

insertElement

Inserts a element into the aggregation elements.

removeAllElements

Removes all the controls from the aggregation elements.

Additionally, it unregisters them from the hosting UIArea.

removeElement

Removes a element from the aggregation elements.

setHeading

Sets a new value for property heading.

The title of the group

When called with a value of null or undefined, the default value of the property will be restored.

Default value is empty string.

setVisible

Sets a new value for property visible.

Determines whether the group is visible on the screen.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

unbindElements

Unbinds aggregation elements from model data.

addElement

Adds some element to the aggregation elements.

Param Type DefaultValue Description
oElement sap.m.QuickViewGroupElement

The element to add; if empty, nothing is inserted

bindElements

Binds aggregation elements to model data.

See ManagedObject.bindAggregation for a detailed description of the possible properties of oBindingInfo.

Param Type DefaultValue Description
oBindingInfo sap.ui.base.ManagedObject.AggregationBindingInfo

The binding information

destroyElements

Destroys all the elements in the aggregation elements.

sap.m.QuickViewGroup.extend

Creates a new subclass of class sap.m.QuickViewGroup 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.Element.extend.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

getElements

Gets content of aggregation elements.

A combination of one label and another control (Link or Text) associated to this label.

getHeading

Gets current value of property heading.

The title of the group

Default value is empty string.

sap.m.QuickViewGroup.getMetadata

Returns a metadata object for class sap.m.QuickViewGroup.

getVisible

Gets current value of property visible.

Determines whether the group is visible on the screen.

Default value is true.

indexOfElement

Checks for the provided sap.m.QuickViewGroupElement in the aggregation elements. and returns its index if found or -1 otherwise.

Param Type DefaultValue Description
oElement sap.m.QuickViewGroupElement

The element whose index is looked for

insertElement

Inserts a element into the aggregation elements.

Param Type DefaultValue Description
oElement sap.m.QuickViewGroupElement

The element to insert; if empty, nothing is inserted

iIndex int

The 0-based index the element should be inserted at; for a negative value of iIndex, the element is inserted at position 0; for a value greater than the current size of the aggregation, the element is inserted at the last position

removeAllElements

Removes all the controls from the aggregation elements.

Additionally, it unregisters them from the hosting UIArea.

removeElement

Removes a element from the aggregation elements.

Param Type DefaultValue Description
vElement int string sap.m.QuickViewGroupElement

The element to remove or its index or id

setHeading

Sets a new value for property heading.

The title of the group

When called with a value of null or undefined, the default value of the property will be restored.

Default value is empty string.

Param Type DefaultValue Description
sHeading string ""

New value for property heading

setVisible

Sets a new value for property visible.

Determines whether the group is visible on the screen.

When called with a value of null or undefined, the default value of the property will be restored.

Default value is true.

Param Type DefaultValue Description
bVisible boolean true

New value for property visible

unbindElements

Unbinds aggregation elements from model data.