#5์ ํ์ ์กฐ์น
์ด๊ฒ์ 0.5.0 ๋ฆด๋ฆฌ์ค๋ก ์ข ๋ฃ๋์์ต๋๋ค. inputType์ ๋ณ๊ฒฝํ์ญ์์ค.
$('button.delete-account').click(function(e) {
swal({
title: "Are you sure you want to delete your account?",
text: "If you are sure, type in your password:",
type: "input",
inputType: "password",
showCancelButton: true,
closeOnConfirm: false
}, function(typedPassword) {
console.log(typedPassword);
});
});
@parterburn์ด ๋งํ๋ฏ์ด inputType
๋ฅผ ์ฌ์ฉํ๋ฉด ๋ฉ๋๋ค. ๋ํ ์
๋ ฅ ๊ธฐ๋ฅ์ ์ฌ์ฉํ๋ ๋ฐฉ๋ฒ์ ์ ๋ชจ๋ฅด๋ ๊ฒฝ์ฐ SweetAlert ์์ต์ ๋ฅผ ํ์ธํ์ญ์์ค.
ํฌ์ธํฐ ์ฃผ์ ์ ๊ฐ์ฌํ๊ณ ์์์ ๋ํด ์ฃ์กํฉ๋๋ค :)
์๋ํ๋ ์๋ฃจ์ ์ ๋๋ค! ๊ฐ์ฌ ํด์ :)
์๋ํฉ๋๋ค ๐
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด๊ฒ์ 0.5.0 ๋ฆด๋ฆฌ์ค๋ก ์ข ๋ฃ๋์์ต๋๋ค. inputType์ ๋ณ๊ฒฝํ์ญ์์ค.