Wijmo AngularJS Inputmask raw-value Attributes

Posted by: tkchung23 on 27 December 2017, 2:05 pm EST

    • Post Options:
    • Link

    Posted 27 December 2017, 2:05 pm EST

    Hi all, i am using angularJS, and want to get raw value from the mask value. e.g. mask:(999-999) and get the value is 999999. I found that there have attributes “raw-value”. How to use this to get the raw-value??

    My code like that:

      <wj-input-mask id="{{clientObject.Name}}" 
    		id="test"
    		mask="(999-999)"
    		ng-model=controller.Text"
    		rawValue ="{{controller.RawValue}}"
    		/>
    
    

    In controller.RawValue, there are no effect.

    Can anyone helps? thanks

  • Posted 28 December 2017, 7:51 pm EST

    Hi,

    We are sorry for the late reply.

    You need to set vwjModelProperty to rawValue. Now, you may get rawValue using ngModel.

    Please refer to the fiddle for the same. You may escape value property if you don’t need it.

    http://jsfiddle.net/mkgupta911/nL38df75/

    ~Manish

Need extra support?

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

Learn More

Forum Channels