I'm reading a tutorial about data binding syntax (SAPUI5). Here is an example of data binding to an oData model:
<Input value="{
path: '/number',
type: 'sap.ui.model.type.Integer',
formatOptions: {
minIntegerDigits: 3
},
constraints: {
maximum: 1000
}
}"/>
So, the question is: what those "path", "type", "formatOptions", "constraints" stand for? I mean, I realize - these are some binding attributes. The value property of the Input control is a string. So, the binding attributes will be parsed and interpreted somewhere inside of the control, but they are not semantically a part of the control. So, is it some oData syntax/attributes, or what? And do you know where can I get all the possible options here?
Depending on the given type, different constraints and format options are possible. In your case, the type is integer/number.
Possible parameters for a general property binding are defined in the abstract class sap.ui.base.ManagedObject.
Possible constraints and format options for an Integer type are defined in the class sap.ui.model.type.Integer.
Possible format options for a number (and also for an integer) are defined in the class sap.ui.core.format.NumberFormat.