class sap.ui.core.EnabledPropagator

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Extends:
Module: sap/ui/core/EnabledPropagator
Application Component: CA-UI5-COR

Constructor

Mixin for enhancement of a control prototype with propagation of the enabled property.

Controls that apply this mixin calculate their effective enabled state on read access as the logical OR of their own enabled property and the enabled state of the nearest ancestor control which has either an enabled property or a getEnabled method.

Applying this mixin adds the enabled property, if it not already exists, to the control metadata.

Also adds the useEnabledPropagator(boolean) helper method to the prototype of the given control. myControlInstance.useEnabledPropagator(false) can be used to prevent a single instance from using EnabledPropagator. In this case, the effective enabled state does not take any ancestors enabled state into account, only the control's own enabled property.

new sap.ui.core.EnabledPropagator(bDefault?, bLegacy?)
Param Type Default Value Description
bDefault? boolean true

Value that should be used as default value for the enhancement of the control.

bLegacy? boolean false

Whether the introduced property should use the old name Enabled.