ExtJS 6.5 Ext.Form.field.Date with InputMask

问题描述 投票:0回答:1

当我将InputMask应用于datefield并尝试通过键盘输入日期时,它返回一个错误,在小提琴中进行了尝试,并且错误也发生了,任何人都有解决方法或关于这些的想法?

代码非常简单:

    Ext.create('Ext.form.Panel', {
        renderTo: Ext.getBody(),
        requires: [' Ext.field.InputMask '],
        width: 300,
        bodyPadding: 10,
        title: 'Dates',
        items: [{
            xtype: 'datefield',
            anchor: '100%',
            fieldLabel: 'Date',
            name: 'date',
            format: 'd/m/Y',
            inputMask: '99/99/9999'
        }]
    });

控制台错误:errorimage.jpg

小提琴音调:https://fiddle.sencha.com/#view/editor&fiddle/32lf

javascript extjs datetimepicker extjs5
1个回答
0
投票
mixin位于核心程序包中,但Sencha保证仅在现代工具箱中才能更好地工作。

InputMask Mixin仅与文本字段兼容

请阅读本指南。

https://docs.sencha.com/extjs/6.5.0/guides/whats_new/whats_new.html#whats_new-_-whats_new_-_input_masking

希望对您有帮助。

© www.soinside.com 2019 - 2024. All rights reserved.