μ λͺ©μ΄ λλΌκ³ νμΈμ??
html
μμ±μ true
λ‘ μ€μ νλ©΄ μ€ λ°κΏ --> <br/>
νκ·Έλ₯Ό μ¬μ©ν μ μμ΅λλ€.
μ΄λ»κ² ν΄μΌ νλμ?
swal({ html: true, title: 'hi', text: 'te<br>st' });
λλ₯Ό μν΄ μλνμ§ μλ κ² κ°μ΅λλ€
ps λλ ν¨μ¬ λ¨μν λ μ¬μ©λ²μ μν΄ pr https://github.com/t4t5/sweetalert/pull/772 λ₯Ό μ¬μ©νμ΅λλ€. μ΄μ λͺ¨λ κ²μ΄ μ μμ λλ€.
html μμ±μ trueλ‘ μ€μ νλ €λ©΄ μ΄λ»κ² ν΄μΌ νλμ? html μμ±μ μμλ 무μμ΄λ©° λ¬Έμνλμ§ μμ μ΄μ λ 무μμ λκΉ? κ°μ¬ν©λλ€.
html
μμ±μ μ€μ html μμ²΄λ‘ μ€μ νλ©΄ μλν©λλ€(μ: text
μμ±μ μ κ±°νκ³ html
μμ±μ html μ½ν
μΈ λ‘ μ€μ ). μ:
$swal({
title: "My title",
type: "error",
html: "My text with<br />html included"
});
κ·Έκ²μ λλ₯Ό μν΄ μλν©λλ€. \nμ μ¬μ©νμμμ€.
swal("μ£μ‘ν©λλ€.", "λΌμΈ 1. \n λΌμΈ 2.", "μ€λ₯");
λ€μκ³Ό κ°μ΄ ν
μ€νΈμ μΌλΆμμλ§ μλν©λλ€.
swal("Oops", "Line 1.\n line2.", "error");
κ·Έλ¬λ μ λͺ©μ μΌλΆλ‘ λ§λ€κ³ μΆλ€λ©΄ .. μλνμ§ μμ΅λλ€.
swal("Oops\nOops", "Line 1", "error");
μ£μ‘νμ§λ§ μ μκ°μλ μ λͺ©μ μ¬λ¬ μ€μ μ¬μ©νλ κ²μ΄ ν©λ¦¬μ μ΄μ§ μμ΅λλ€(κ·Έλ¦¬κ³ μ’μ λμμΈ μ¬μμ λ°λ¦).
νΈμ§: κ°μ¬ν©λλ€ @mightystephen
swal({
buttons: ["Wait ", "Add Details"],
html: true,
text: "Text one .\n Text 2.\n Text 3."
})
μ¬κΈ° ν΄κ²°μ±
μ΄ μμ΅λλ€. λ°μμμ μλ²½νκ² μλν©λλ€. μ¦κΈ°λ€
κ°μ₯ μ μ©ν λκΈ
html
μμ±μ μ€μ html μμ²΄λ‘ μ€μ νλ©΄ μλν©λλ€(μ:text
μμ±μ μ κ±°νκ³html
μμ±μ html μ½ν μΈ λ‘ μ€μ ). μ: