Alerta rehegua
Ome’ẽ marandu ñe’ẽñemi contextual rehegua umi tembiaporã típico oiporúvape g̃uarã umi puñado marandu alerta rehegua ojeguerekóva ha ijyvytu’ỹva reheve.
Tembiecharã
Ojeguereko alerta oimeraẽva jehaipyre pukukue, avei peteĩ botón opcional de despido. Ojejapo hag̃ua estilo hekopete, eipuru peteĩva umi ocho clase contextual oñeikotevẽvagui (techapyrã, .alert-success
). Oñemboyke hag̃ua línea ryepýpe, eipuru umi alertas jQuery plugin .
<div class="alert alert-primary" role="alert">
A simple primary alert—check it out!
</div>
<div class="alert alert-secondary" role="alert">
A simple secondary alert—check it out!
</div>
<div class="alert alert-success" role="alert">
A simple success alert—check it out!
</div>
<div class="alert alert-danger" role="alert">
A simple danger alert—check it out!
</div>
<div class="alert alert-warning" role="alert">
A simple warning alert—check it out!
</div>
<div class="alert alert-info" role="alert">
A simple info alert—check it out!
</div>
<div class="alert alert-light" role="alert">
A simple light alert—check it out!
</div>
<div class="alert alert-dark" role="alert">
A simple dark alert—check it out!
</div>
Ombohasávo he’iséva umi tecnología oipytyvõvape
Oipurúvo saꞌi omoĩ hag̃ua heꞌiséva omeꞌe peteĩ jehechaukarãnte, noñembohasamoꞌãiva umi oiporúvape umi tecnología oipytyvõva – haꞌeháicha umi pantalla moñeꞌerã. Ejesareko marandu ojehechaukáva saꞌi rupive ojehecha porãha pe contenido-gui voi (techapyrã, jehaipyre ojehecháva), térã oikeha ambue tape rupive, haꞌeháicha jehaipyre adicional oñeñomivaꞌekue .sr-only
mboꞌepy ndive.
Enlace color rehegua
Eipuru .alert-link
clase utilidad rehegua eme’ẽ pya’e hag̃ua enlace color ojoajúva oimeraẽ alerta ryepýpe.
<div class="alert alert-primary" role="alert">
A simple primary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-secondary" role="alert">
A simple secondary alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-success" role="alert">
A simple success alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-danger" role="alert">
A simple danger alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-warning" role="alert">
A simple warning alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-info" role="alert">
A simple info alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-light" role="alert">
A simple light alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
<div class="alert alert-dark" role="alert">
A simple dark alert with <a href="#" class="alert-link">an example link</a>. Give it a click if you like.
</div>
Contenido adicional rehegua
Umi alerta ikatu avei oguereko elemento HTML ambuéva haꞌeháicha iñakãrapuꞌa, párrafo ha divisor.
Japo porã!
Aww heẽ, relee porã ko mensaje de alerta iñimportánteva. Ko jehaipyre techapyrãva ipukuvéta ikatu hag̃uáicha rehecha mbaꞌeichaitépa ombaꞌapo espaciado peteĩ alerta ryepýpe koꞌaichagua contenido ndive.
Tekotevẽ jave, katuete reipuru umi utilidad margen rehegua reñongatu hag̃ua umi mba’e iporãva ha oñemohenda porãva.
<div class="alert alert-success" role="alert">
<h4 class="alert-heading">Well done!</h4>
<p>Aww yeah, you successfully read this important alert message. This example text is going to run a bit longer so that you can see how spacing within an alert works with this kind of content.</p>
<hr>
<p class="mb-0">Whenever you need to, be sure to use margin utilities to keep things nice and tidy.</p>
</div>
Omosẽvo
Oipurúvo alerta JavaScript plugin, ikatu oñemboyke oimeraẽva alerta en línea. Péicha ojehecha:
- Ejesareko ekargáma hague pe plugin alerta rehegua, térã pe JavaScript Bootstrap oñembohekopyréva.
- Emopu’ãramo ore JavaScript ypykue guive, oikotevẽ
util.js
. Pe versión oñembyatývape oike ko mba’e. - Oñemoĩ peteĩ botón de despido ha pe
.alert-dismissible
clase, omoĩva acolchado extra alerta akatúape ha omoĩ pe.close
botón. - Pe botón ñemboyke rehegua, emoĩ
data-dismiss="alert"
atributo, omoñepyrũva JavaScript rembiaporã. Eipuru katuete<button>
elemento hendive ejepokuaa porã hag̃ua opaite tembipuru’i rupi. - Oñeanima hag̃ua umi alerta oñemboyke jave, katuete emoĩve umi clase
.fade
ha ..show
Ikatu rehecha kóva acción-pe peteĩ demostración en vivo reheve:
<div class="alert alert-warning alert-dismissible fade show" role="alert">
<strong>Holy guacamole!</strong> You should check in on some of those fields below.
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
JavaScript jepokuaa
Umi mba’e omoñepyrũva
Emboguata peteĩ ñe’ẽmondo ñemboyke JavaScript rupive:
$('.alert').alert()
Térã umi data
atributo reheve peteĩ botón alerta ryepýpe , ojehechaukaháicha yvateve:
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
Ñañamindu’u oñembotývo peteĩ alerta ojeipe’áta DOM-gui.
Método-kuéra rehegua
Tapereko | Techaukaha |
---|---|
$().alert() |
Ojapo peteĩ alerta ohendu hag̃ua umi mbaꞌe ojehúva clic rehegua umi elemento descendiente rehegua oguerekóva data-dismiss="alert" atributo. (Natekotevẽi ojepuru jave data-api auto-initialización). |
$().alert('close') |
Omboty peteĩ alerta oipeꞌa rupi DOM-gui. Umi clase .fade ha .show oĩramo elemento-pe, pe alerta oñehundipáta ojeipeꞌa mboyve. |
$().alert('dispose') |
Ombyai peteĩ elemento alerta. |
$('.alert').alert('close')
Umi mba’e oikóva
Bootstrap plugin alerta rehegua oikuaauka mbovymi mbaꞌe ojehúva oñembojoaju hag̃ua alerta funcionalidad-pe.
Jeguerohyha | Techaukaha |
---|---|
close.bs.alert |
Ko mbaꞌe ojehúva oñembopu pyaꞌe oñehenói jave close método instancia rehegua. |
closed.bs.alert |
Ko mba’e ojehúva oñemboty oñemboty rire ñe’ẽmondo (oha’arõta oñembotývo umi CSS jehaipyre). |
$('#myAlert').on('closed.bs.alert', function () {
// do something...
})