Class sap.ui.comp.smartfield.ControlProposalModule: sap/ui/comp/smartfield/ControlProposal
Proposes a control to be rendered. The smart field may ignore the proposal.
sClassName and enriches it with the information contained in oClassInfo. Accepts an object literal mSettings that defines initial property values, aggregated and associated objects as well as event handlers. See sap.ui.base.ManagedObject for a general description of the syntax of the settings object.
The supported settings are:
- Properties
- controlType : sap.ui.comp.smartfield.ControlProposalType (default: None)
- Aggregations
- objectStatus : sap.ui.comp.smartfield.ObjectStatus
In addition, all settings applicable to the base type sap.ui.core.Element can be used as well.
| {string} | sId? | id for the new control, generated automatically if no id is given |
| {object} | mSettings? | initial settings for the new control |
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.
| {string} | sClassName | Name of the class being created |
| {object} | oClassInfo? | Object literal with information about the class |
| {function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
| {function} | Created class / constructor function |
| {sap.ui.base.Metadata} | Metadata object describing this class |
objectStatus. - Since:
- 1.34.0
| {sap.ui.comp.smartfield.ControlProposal} | Reference to this in order to allow method chaining |
controlType. By default the SmartField chooses the controls it hosts by interpreting OData meta data. This property allows to overwrite the default behavior to some extent; for example this property allows to define that an OData property of type Edm.Boolean is displayed as combo box.
Default value is None.
| {sap.ui.comp.smartfield.ControlProposalType} | Value of property controlType |
objectStatus. Optional definition to further qualify how an object status control should be rendered.
- Since:
- 1.34.0
| {sap.ui.comp.smartfield.ObjectStatus} |
controlType. By default the SmartField chooses the controls it hosts by interpreting OData meta data. This property allows to overwrite the default behavior to some extent; for example this property allows to define that an OData property of type Edm.Boolean is displayed as combo box.
When called with a value of null or undefined, the default value of the property will be restored.
Default value is None.
| {sap.ui.comp.smartfield.ControlProposalType} | sControlType | New value for property controlType |
| {sap.ui.comp.smartfield.ControlProposal} | Reference to this in order to allow method chaining |
objectStatus. | {sap.ui.comp.smartfield.ObjectStatus} | oObjectStatus | The objectStatus to set |
- Since:
- 1.34.0
| {sap.ui.comp.smartfield.ControlProposal} | Reference to this in order to allow method chaining |