Just learning SAP UI5, I have a simple input field like so:
app.xml
<Input
placeholder="Please enter 10 digit number"
value=""
/Input>
I'm trying to understand how I can add a validation on the input field that does the following:
-Accepts a number of 10 digits or more
So far, what I understand, this can be setup in the following way:
<Input value=”{
path : ‘/userName’,
type : ‘sap.ui.model.type.Integer’,
constraints : {
minLength : 10
}
}
Where I'm getting confused:
The input field is meant to act as a search bar, therefore I don't need to introduce databinding (search bar should not have an initial value) where I have to configure a path. Can someone explain to me how I can add validation without setting a 'Path'?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…