sweet alert sample

علی ذوالفقار
1401/09/05 22:11:35 (415)
            // show a dialog that can lead user to complete my missing info 
            swal.fire({
                    title: title ,
                    // text: 'تست',
                    html:html,
                    icon: 'error', // success , error , warning , info , question
                    showDenyButton: showDenyButton,
                    // showCancelButton: true,
                    confirmButtonText: 'ورود مجدد',
                    denyButtonText: 'ثبت کد ملی',
                    // cancelButtonText : 'cancel',
                    // button: 'تایید' ,
                    // dangerMode : true , 
                    // footer : 'footer' ,
                }).then((result)=>{
                    // console.log('dialog result:' , result);                    
                    if(result.isDenied){
                        replace('/regnin');
                    }else{
                        captcha.focus();
                    }
                }); 
Back