in English

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-onlymboꞌepy ndive.

Eipuru .alert-linkclase 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.

<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-dismissibleclase, omoĩva acolchado extra alerta akatúape ha omoĩ pe .closebotó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 .fadeha ..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">&times;</span>
  </button>
</div>

JavaScript jepokuaa

Umi mba’e omoñepyrũva

Emboguata peteĩ ñe’ẽmondo ñemboyke JavaScript rupive:

$('.alert').alert()

Térã umi dataatributo 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">&times;</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 .fadeha .showoĩ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 closemé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...
})