Open prompt text input as type of number?

I want to prompt the user to fill numeric value, so I want to set the input in the prompt to be of type of “number” like input type=“tel” or something - it will prompt the numeric keyboard in mobile devices instead of the “regular” keyboard with the keys and characters. How can I achieve this using F7 + React?

const dialog = f7.dialog.prompt(...);
dialog.$el.find('input').attr('type', 'number');

Awesome, I have done this using pure JS, just wanted to know if there is a built in method which I missed.