This class represents a type that is used to map an array of conditions to a single-value control (such as Input
or Text
control).
Constructor for a Conditions type.
new sap.ui.mdc.field.ConditionsType(oFormatOptions?, oConstraints?)
Param | Type | Default Value | Description |
---|---|---|---|
oFormatOptions? | object | Formatting options |
|
valueType? | sap.ui.model.Type | Type of the value of the condition (used for formatting and parsing) |
|
operators? | string[] | Possible operators to be used in the condition |
|
display? | sap.ui.mdc.enum.FieldDisplay | DisplayFormat used to visualize value |
|
fieldHelpID? | string | ID of the field help, to determine key and description // TODO: async request???? |
|
hideOperator? | boolean | If set, only the value of the condition is shown, but no operator //TODO |
|
maxConditions? | int | Maximum number of allowed conditions |
|
bindingContext? | sap.ui.model.Context | BindingContext of field. Used to get key or description from the value help using in/out parameters. (In table, the value help might be connected to different row) |
|
originalDateType? | sap.ui.model.Type | Type used on field. E.g. for date types internally a different type is used internally to have different |
|
additionalType? | sap.ui.model.Type | additional Type used on other part of a field. (This is the case for unit fields.) |
|
getConditions? | function | Function to get the existing conditions of the field. Only used if |
|
asyncParsing? | function | Callback function to tell the |
|
navigateCondition? | object | Condition of keyboard navigation. If this is filled, no real parsing is needed as the condition has already been determined. Just return it |
|
delegate? | object | Field delegate to handle model-specific logic |
|
payload? | object | Payload of the delegate |
|
preventGetDescription? | boolean | If set, description is not read by |
|
conditionModel? | sap.ui.mdc.condition.ConditionModel |
|
|
conditionModelName? | string | Name of the |
|
defaultOperatorName? | string | Name of the default |
|
oConstraints? | object | Value constraints |
Method | Description |
---|---|
sap.ui.mdc.field.ConditionsType.extend |
Creates a new subclass of class sap.ui.mdc.field.ConditionsType with name
|
sap.ui.mdc.field.ConditionsType.getMetadata |
Returns a metadata object for class sap.ui.mdc.field.ConditionsType. |
Creates a new subclass of class sap.ui.mdc.field.ConditionsType with name sClassName
and enriches it with the information contained in oClassInfo
.
oClassInfo
might contain the same kind of information as described in sap.ui.model.SimpleType.extend.
Param | Type | DefaultValue | Description |
---|---|---|---|
sClassName | string |
Name of the class being created |
|
oClassInfo | object |
Object literal with information about the class |
|
FNMetaImpl | function |
Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class |