I'm using Sweet Alert2 (https://sweetalert2.github.io/) -react component and I need on second step mask the input with (thousand separator and prefix="$") it's possible?
Here some code
import React, { Component } from 'react';
import Swal from 'sweetalert2';
import { Fab } from '@material-ui/core';
import withReactContent from 'sweetalert2-react-content';
const reSwal = withReactContent(Swal);
class NewTask extends Component {
state = {
goToProfile: false
};
handleNewTask = async () => {
reSwal.mixin({
input: 'text',
confirmButtonText: 'Next →',
showCancelButton: true,
progressSteps: ['1', '2']
}).queue([
{
title: 'Age',
text: 'Your Age'
},
{
title: 'Budget',
text: 'Your Budget',
input: 'number',
inputAttributes: {
min: 100,
max: 1000000
},
},
]).then((result) => {
if (result.value) {
reSwal.fire({
title: 'thank u !',
confirmButtonText: 'Lovely!'
})
}
})
}
render() {
return (
New
);
}
}
export default NewTask;
I don't know how to control this. Thank for your help