class sap.f.CardBase

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

A base class for controls that represent a container with a predefined header and content.


Constructor

Constructor for a new CardBase.

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.f.CardBase(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
height sap.ui.core.CSSSize auto

Defines the height of the card.

Visibility: public
width sap.ui.core.CSSSize 100%

Defines the width of the card.

Visibility: public

Methods Overview

Method Description
sap.f.CardBase.extend

Creates a new subclass of class sap.f.CardBase 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.

getAriaRoleDescription
getCardContent

Implements sap.f.ICard interface.

getCardHeader

Implements sap.f.ICard interface.

getCardHeaderPosition

Implements sap.f.ICard interface.

getFocusDomRef

Returns the DOM Element that should get the focus.

getHeight

Gets current value of property height.

Defines the height of the card.

Default value is "auto".

sap.f.CardBase.getMetadata

Returns a metadata object for class sap.f.CardBase.

getWidth

Gets current value of property width.

Defines the width of the card.

Default value is "100%".

setHeight

Sets a new value for property height.

Defines the height of the card.

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

Default value is "auto".

setWidth

Sets a new value for property width.

Defines the width of the card.

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

Default value is "100%".

sap.f.CardBase.extend

Creates a new subclass of class sap.f.CardBase 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.

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

getAriaRoleDescription

getCardContent

Implements sap.f.ICard interface.

getCardHeader

Implements sap.f.ICard interface.

getCardHeaderPosition

Implements sap.f.ICard interface.

getFocusDomRef

Returns the DOM Element that should get the focus.

getHeight

Gets current value of property height.

Defines the height of the card.

Default value is "auto".

sap.f.CardBase.getMetadata

Returns a metadata object for class sap.f.CardBase.

getWidth

Gets current value of property width.

Defines the width of the card.

Default value is "100%".

setHeight

Sets a new value for property height.

Defines the height of the card.

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

Default value is "auto".

Param Type DefaultValue Description
sHeight sap.ui.core.CSSSize "auto"

New value for property height

setWidth

Sets a new value for property width.

Defines the width of the card.

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

Default value is "100%".

Param Type DefaultValue Description
sWidth sap.ui.core.CSSSize "100%"

New value for property width