How to add maxLength on ion-input?

Member

by irwin , in category: Technology , 4 years ago

How to add maxLength on ion-input?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by sidney , 4 years ago

Use Html5 maxlength property to add maxLength on ion-input.


Example

<ion-content padding>

  <ion-list>

    <ion-item>

      <ion-label color="primary" stacked>Stacked Label</ion-label>

      <ion-input type="text" maxlength="4" placeholder="Password Input"></ion-input>

    </ion-item>

  </ion-list>

</ion-content>

Related Threads:

What Are the Best Practices for Optimizing Performance in Vue.js Applications?
What Are the Best Practices for Writing Secure Oracle Sql Queries?
How to add 301 redirects in PHP?
How to Customize Macros on a Gaming Keyboard in 2025?
How to Add SVG in HTML?
What Are the Best Practices for Sql Server Security?