title: How can I add validation to an Input field?
body: <p>Just learning SAP UI5, I have a simple input field like so:</p>
  
  <p><strong>app.xml</strong></p>
  
  <pre><code>&lt;Input
      placeholder="Please enter 10 digit number"
      value=""
  /Input&gt;
  </code></pre>
  
  <p>I'm trying to understand how I can add a validation on the input field that does the following:</p>
  
  <p>-Accepts a number of 10 digits or more</p>
  
  <p>So far, what I understand, this can be setup in the following way:</p>
  
  <pre><code>&lt;Input value=”{
  
      path : ‘/userName’,
      type : ‘sap.ui.model.type.Integer’,
      constraints : {
          minLength : 10
      }
  }
  </code></pre>
  
  <p>Where I'm getting confused:</p>
  
  <p>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'?</p>