How to instantiate input box for string?

Posted by: sh.koizumi on 29 August 2018, 9:09 am EST

    • Post Options:
    • Link

    Posted 29 August 2018, 9:09 am EST

    This is simple question but was not able find answer. how to instantiate inputbox for string? I know there are a couple of classes for number, dates, combobox but don’t see for string. I need to instantiate and attach to Popup dialog when user click on one of rows but the following line seems not working.

    formControls.name = new Input(“#name”)

    but this works for number

    formControls.expenses = new wjcInput.InputNumber(‘#expenses’, { format: ‘n2’, min: 0, step: 100 });

  • Posted 29 August 2018, 3:40 pm EST

    Hi,

    Wijmo doesn’t provide any specific control for simple string types however you can use InputMask to fulfil your requirement, if mask property is not set for InputMask control then it behaves as a simple text input control.

    Please refer to the following code snippet:-

    formControl.name = new wjcInput.InputMask("#name");
    

    More info on InputMask can be found here:- https://demos.wijmo.com/5/Angular/WijmoHelp/WijmoHelp/topic/wijmo.input.InputMask.Class.html

    ~Sharad

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels