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:
value
andenabled
are properties ofInput
control Link (Good!! I can bind properties with model contains the attributes)maxLength
anddecimals
are optionsofString
type andFloat
type (Link) but I can't bind options with a model :-/minLength
I 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
maxLength
forInput
Control.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