sap.suite.ui.commons.DateRangeSlider.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.suite.ui.commons.DateRangeSlider with name
sClassName
and enriches it with the information contained in
oClassInfo
.
oClassInfo
might contain the same kind of informations as described in Element.extend.
Parameters:
{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. |
Returns:
{function} | the created class / constructor function |
Returns a metadata object for class sap.suite.ui.commons.DateRangeSlider.
Returns:
Attach event handler
fnFunction
to the 'change' event of this
sap.suite.ui.commons.DateRangeSlider
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.suite.ui.commons.DateRangeSlider
.
itself. This event is fired when user changes completes the selection of a new date using a grip. It contains the Date object value of each grip such that the left grip value is held by the value property and the right grip value is held by the value2 property.
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.DateRangeSlider . itself. |
Returns:
Attach event handler
fnFunction
to the 'liveChange' event of this
sap.suite.ui.commons.DateRangeSlider
.
. When called, the context of the event handler (its
this
) will be bound to
oListener if specified otherwise to this sap.suite.ui.commons.DateRangeSlider
.
itself. This live event is fired as the user slides a grip with the mouse. It contains the Date object value of each grip such that the left grip value is held by the value property and the right grip value is held by the value2 property.
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 call, when the event occurs. |
{object} | oListener? | Context object to call the event handler with. Defaults to this sap.suite.ui.commons.DateRangeSlider . itself. |
Returns:
Detach event handler
fnFunction
from the 'change' event of this
sap.suite.ui.commons.DateRangeSlider
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Detach event handler
fnFunction
from the 'liveChange' event of this
sap.suite.ui.commons.DateRangeSlider
.
The passed function and listener object must match the ones used for event registration.
Parameters:
{function} | fnFunction | The function to call, when the event occurs. |
{object} | oListener | Context object on which the given function had to be called. |
Returns:
Fire event change to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
Fire event liveChange to attached listeners.
Parameters:
{Map} | mArguments? | the arguments to pass along with the event. |
Returns:
getEditable(): boolean
Getter for property
editable
. This property switches the enabled state of the control. Using the date range slider interactively requires this property to be true.
Default value is true
Returns:
{boolean} | the value of property editable |
getEnabled(): boolean
Getter for property
enabled
. This property switches the enabled state of the control. Disabled fields have different colors, and can not be focused.
Default value is true
Returns:
{boolean} | the value of property enabled |
getLabels(): string[]
Getter for property
labels
. Labels to be displayed instead of dates.
Default value is empty/undefined
Returns:
{string[]} | the value of property labels |
getMax(): object
Getter for property
max
. Maximum date for the slider.
Default value is empty/undefined
Returns:
{object} | the value of property max |
getMin(): object
Getter for property
min
. Minimum date for the slider.
Default value is empty/undefined
Returns:
{object} | the value of property min |
getPinGrip(): boolean
Getter for property
pinGrip
. Pin the left grip so that user cannot move it with the keyboard or mouse.
Default value is false
Returns:
{boolean} | the value of property pinGrip |
getPinGrip2(): boolean
Getter for property
pinGrip2
. Pin the right grip so that user cannot move it with the keyboard or mouse.
Default value is false
Returns:
{boolean} | the value of property pinGrip2 |
getShowBubbles(): boolean
Getter for property
showBubbles
. Property to show or hide bubbles. Default is true.
Default value is true
Returns:
{boolean} | the value of property showBubbles |
getSmallStepWidth(): float
Getter for property
smallStepWidth
. The grips of the control can only be moved in steps of this width.
Default value is empty/undefined
Returns:
{float} | the value of property smallStepWidth |
getStepLabels(): boolean
Getter for property
stepLabels
. Display a date label above each tick.
Default value is false
Returns:
{boolean} | the value of property stepLabels |
getTotalUnits(): int
Getter for property
totalUnits
. Number of units between ticks.
Default value is empty/undefined
Returns:
{int} | the value of property totalUnits |
getValue()
Get value property for the control.
getValue2()
Get value2 property for the control.
getVisible(): boolean
Getter for property
visible
. This property switches the visible state of the control. Invisible date range slider are not rendered.
Default value is true
Returns:
{boolean} | the value of property visible |
Getter for property
width
. Width of the horizontal date range slider.
Default value is 100%
Returns:
setDateFormat(oDateFormat)
Setter for dateFormat which is used to format the dates for Labels, bubble texts, and tool tips. If passed object is null or is of incorrect type, _oDateRangeSliderInternal's default formatting will be used.
Parameters:
Set Date Range Slider Granularity to Day
Returns:
setEditable(bEditable)
Set editable property for the DateRangeSlider
Parameters:
setEnabled(bEnabled)
Set enabled property for the DateRangeSlider
Parameters:
setLabels(aLabels)
Set labels property for the DateRangeSlider
Parameters:
setMax(dMax)
Set max property for the DateRangeSlider. This sets the maximum date for the slider.
Parameters:
setMin(dMin)
Set min property for the DateRangeSlider. This sets the minimum date for the slider.
Parameters:
Set Date Range Slider Granularity to Month
Returns:
setPinGrip(bPinGrip)
Set pinGrip property for the DateRangeSlider
Parameters:
setPinGrip2(bPinGrip2)
Set pinGrip2 property for the DateRangeSlider
Parameters:
setShowBubbles(bShowBubbles)
Set showBubbles property for the DateRangeSlider
Parameters:
setSmallStepWidth(fSmallStepWidth)
Set smallStepWidth property for the DateRangeSlider
Parameters:
setStepLabels(bStepLabels)
Set stepLabels property for the DateRangeSlider
Parameters:
setTotalUnits(iTotalUnits)
Set totalUnits property for the DateRangeSlider
Parameters:
setValue(dValue)
Set value property for the DateRangeSlider. This sets the value date for the slider.
Parameters:
setValue2(dValue2)
Set value2 property for the DateRangeSlider. This sets the value2 date for the slider.
Parameters:
setVisible(bVisible)
Set visible property for the DateRangeSlider
Parameters:
setWidth(tWidth)
Set width property for the DateRangeSlider
Parameters: