Represents a day view of the sap.m.SinglePlanningCalendar. The purpose of the element is to decouple the view logic from parent control SinglePlanningCalendar
.
Constructor for a new SinglePlanningCalendarView
.
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.SinglePlanningCalendarView(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 |
Method | Description |
---|---|
calculateStartDate |
Should calculate the startDate which will be displayed in the |
sap.m.SinglePlanningCalendarView.extend |
Creates a new subclass of class sap.m.SinglePlanningCalendarView with name
|
getEntityCount |
Should return the number of columns to be displayed in the grid of the |
getKey |
Gets current value of property key. Indicates a unique key for the view |
sap.m.SinglePlanningCalendarView.getMetadata |
Returns a metadata object for class sap.m.SinglePlanningCalendarView. |
getScrollEntityCount |
Should return a number of entities until the next/previous startDate of the |
getTitle |
Gets current value of property title. Adds a title for the view |
setKey |
Sets a new value for property key. Indicates a unique key for the view When called with a value of |
setTitle |
Sets a new value for property title. Adds a title for the view When called with a value of |
Should calculate the startDate which will be displayed in the sap.m.SinglePlanningCalendar
based on a given date.
Param | Type | DefaultValue | Description |
---|---|---|---|
oDate | object |
the given date |
Creates a new subclass of class sap.m.SinglePlanningCalendarView 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 |
Should return the number of columns to be displayed in the grid of the sap.m.SinglePlanningCalendar
.
Returns a metadata object for class sap.m.SinglePlanningCalendarView.
Should return a number of entities until the next/previous startDate of the sap.m.SinglePlanningCalendar
after navigating forward/backward with the arrows. For example, by pressing the forward button inside the work week view, the next startDate of a work week will be 7 entities (days) away from the current one.
Sets a new value for property key.
Indicates a unique key for the view
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sKey | string |
New value for property |
Sets a new value for property title.
Adds a title for the view
When called with a value of null
or undefined
, the default value of the property will be restored.
Param | Type | DefaultValue | Description |
---|---|---|---|
sTitle | string |
New value for property |