AlertController Ionic2- Fixed Input Field Length to max and Min


#1

Can I set max length in Input -Prompt Alert?

   inputs: [
            {
              name: 'username',
              type: 'number',
              placeholder: 'Mobile Number',
            },
          ],

#2

As far as I can see this is not available in the options of an AlertInput: