Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/date/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ionic framework Ionic 3无法修复警报控制器提示输入的maxlength_Ionic Framework_Ionic3 - Fatal编程技术网

Ionic framework Ionic 3无法修复警报控制器提示输入的maxlength

Ionic framework Ionic 3无法修复警报控制器提示输入的maxlength,ionic-framework,ionic3,Ionic Framework,Ionic3,我用我的移动应用程序来安装爱奥尼亚-3我有一些小问题,我想动态设置最大长度,我尝试了但没有工作,无法修复max length警报控制器的提示输入我想知道如何动态设置,我尝试使用max:'4', 类型:'number',但不工作 谢谢 doPrompt() { let prompt = this.alertCtrl.create({ title: 'Add your digit code', message: "", i

我用我的移动应用程序来安装爱奥尼亚-3我有一些小问题,我想动态设置最大长度,我尝试了但没有工作,无法修复
max length
警报控制器的
提示输入
我想知道如何动态设置,我尝试使用
max:'4',
类型:'number',
但不工作

谢谢

 doPrompt() {
        let prompt = this.alertCtrl.create({
          title: 'Add your digit code',
          message: "",
          inputs: [
            { 

             type:'number',
              name: 'title',


           placeholder: '* * * *',
              max:'4',
            },
          ],
          buttons: [
            {
              text: 'Cancel',
              handler: data => {
                console.log('Cancel clicked');
              }
            },
            {
              text: 'Save',
              handler: data => {
                console.log('Saved clicked');
              }
            }
          ]
        });
        prompt.present();
      }
    }

我认为没有办法做到这一点
Max
Min
在这种情况下是输入的最大值和最小值是的,爱奥尼亚团队没有提供这个选项,最后我变成了一个模型选项