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 |