My rest service expose me a group of fields: each filed has a value and a list of attributes: enabled, maxLength (in case of string), minLength (in case of string), decimals (number of decimal digits - in case of float).
In OpenUi5 I have:
valueandenabledare properties ofInputcontrol Link (Good!! I can bind properties with model contains the attributes)maxLengthanddecimalsare optionsofStringtype andFloattype (Link) but I can't bind options with a model :-/minLengthI can't find a property/option
I would like map (bind) each attribute with component so that automatically the library control for me without writing more code.
there is a property called
maxLengthforInputControl.So the only problem I see is binding minLength and decimals for which there is little bit effort is needed.
Solution
Sample Code Structure:
Bind the other properties to the value of customData