Class sap.ui.comp.smartfield.ConfigurationModule: sap/ui/comp/smartfield/Configuration
The configuration allows to further define the behavior of a SmartField.
sClassName
and enriches it with the information contained in oClassInfo
.preventInitialDataFetchInValueHelpDialog
.preventInitialDataFetchInValueHelpDialog
. 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.ControlType
- displayBehaviour : sap.ui.comp.smartfield.DisplayBehaviour
- preventInitialDataFetchInValueHelpDialog : boolean (default: true)
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 |
controlType
. By default the SmartField chooses the controls it hosts by interpreting OData metadata. This property allows to overwrite the default behavior to some extent. For example makes it possible to define that an OData property of type Edm.Boolean is displayed as a combo box.
{sap.ui.comp.smartfield.ControlType} | Value of property controlType |
displayBehaviour
. The property specifies how value help, that is available for input fields, is presented. For example, it specifies whether the descriptions of the values shown in the result after a query are displayed.
{sap.ui.comp.smartfield.DisplayBehaviour} | Value of property displayBehaviour |
preventInitialDataFetchInValueHelpDialog
. If there are value help annotations for a smart field, it is possible to specify whether the table in the value help dialog for this field will be filled initially. The default value is true
, which means the table will not be filled as the data fetch is prevented.
Default value is true
.
{boolean} | Value of property preventInitialDataFetchInValueHelpDialog |
controlType
. By default the SmartField chooses the controls it hosts by interpreting OData metadata. This property allows to overwrite the default behavior to some extent. For example makes it possible to define that an OData property of type Edm.Boolean is displayed as a combo box.
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.comp.smartfield.ControlType} | sControlType | New value for property controlType |
{sap.ui.comp.smartfield.Configuration} | Reference to this in order to allow method chaining |
displayBehaviour
. The property specifies how value help, that is available for input fields, is presented. For example, it specifies whether the descriptions of the values shown in the result after a query are displayed.
When called with a value of null
or undefined
, the default value of the property will be restored.
{sap.ui.comp.smartfield.DisplayBehaviour} | sDisplayBehaviour | New value for property displayBehaviour |
{sap.ui.comp.smartfield.Configuration} | Reference to this in order to allow method chaining |
preventInitialDataFetchInValueHelpDialog
. If there are value help annotations for a smart field, it is possible to specify whether the table in the value help dialog for this field will be filled initially. The default value is true
, which means the table will not be filled as the data fetch is prevented.
When called with a value of null
or undefined
, the default value of the property will be restored.
Default value is true
.
{boolean} | bPreventInitialDataFetchInValueHelpDialog | New value for property preventInitialDataFetchInValueHelpDialog |
{sap.ui.comp.smartfield.Configuration} | Reference to this in order to allow method chaining |