How to use inputmask number with number field of SimpleSchema and AutoForm?


#1

I want to use inputmask number with SimpleSchema, AutoForm like this:

// Simple schema
myNumber:{
   type: Number,
   label: 'My label'
}

// Templage
{{> afQuickField name="myNumber"}}

// Js
Template.myTemplate.onRender(function(){
   var myNumber = $('[name="myNumber"]');
   myNumber.inputmask.... // Set inputmask for 0,000.00
})

But have problem with type of schema. please help me how to solve this?