SourceGrupo de botón rehegua
Embojoaju peteĩ serie botón rehegua oñondive peteĩ línea-pe botón aty ndive, ha emombaꞌapo super-poder JavaScript rupive.
Embojere peteĩ serie de botón orekóva .btn
en .btn-group
. Emoĩve radio JavaScript opcional ha jeikoha estilo vore rehegua ore mboajepyréva mboajepyréva reheve .
Kopia
<div class= "btn-group" role= "group" aria-label= "Basic example" >
<button type= "button" class= "btn btn-secondary" > Left</button>
<button type= "button" class= "btn btn-secondary" > Middle</button>
<button type= "button" class= "btn btn-secondary" > Right</button>
</div>
Ejeasegura hekopete role
ha eme’ẽ peteĩ etiqueta
Umi tecnología oipytyvõva (haꞌeháicha umi lector pantalla rehegua) ombohasa hag̃ua oñemboatyha peteĩ serie de botón, role
tekotevẽ oñemeꞌe peteĩ atributo hekopete. Umi botón aty’ípe g̃uarã, kóva ha’éta role="group"
, umi tembipuru’i ryru katu oguerekova’erã peteĩ role="toolbar"
.
Avei, umi aty ha tembipuru ryru oñemeꞌevaꞌerã peteĩ etiqueta hesakãva, hetavégui umi tecnología oipytyvõva ambue hendáicha nomoherakuãmoꞌãigui, jepémo oĩ atributo rol hekopete. Umi techapyrã oñemeꞌevaꞌekuépe koꞌape, jaipuru , ha katu ikatu avei ojeporu umi aria-label
alternativa haꞌeháicha .aria-labelledby
Ombojoaju umi aty botón rehegua aty tembipururã botón rehegua umi componente ikomplikadovévape g̃uarã. Eipuru umi clase utilidad rehegua tekotevẽháicha embohasa hag̃ua espaciado umi aty, botón ha hetave mbaꞌe.
Kopia
<div class= "btn-toolbar" role= "toolbar" aria-label= "Toolbar with button groups" >
<div class= "btn-group mr-2" role= "group" aria-label= "First group" >
<button type= "button" class= "btn btn-secondary" > 1</button>
<button type= "button" class= "btn btn-secondary" > 2</button>
<button type= "button" class= "btn btn-secondary" > 3</button>
<button type= "button" class= "btn btn-secondary" > 4</button>
</div>
<div class= "btn-group mr-2" role= "group" aria-label= "Second group" >
<button type= "button" class= "btn btn-secondary" > 5</button>
<button type= "button" class= "btn btn-secondary" > 6</button>
<button type= "button" class= "btn btn-secondary" > 7</button>
</div>
<div class= "btn-group" role= "group" aria-label= "Third group" >
<button type= "button" class= "btn btn-secondary" > 8</button>
</div>
</div>
Eñeñandu porã embojehe’a hag̃ua umi aty jeikerã umi aty botón rehegua ndive ne tembipuru’i ryrúpe. Ojogua pe techapyrã yvateguápe, oiméne reikotevẽta algún utilidad jepémo espacia porã hag̃ua umi mba’e.
1. 1.1
2. 2.1
3.1
4 rehegua
Kopia
<div class= "btn-toolbar mb-3" role= "toolbar" aria-label= "Toolbar with button groups" >
<div class= "btn-group mr-2" role= "group" aria-label= "First group" >
<button type= "button" class= "btn btn-secondary" > 1</button>
<button type= "button" class= "btn btn-secondary" > 2</button>
<button type= "button" class= "btn btn-secondary" > 3</button>
<button type= "button" class= "btn btn-secondary" > 4</button>
</div>
<div class= "input-group" >
<div class= "input-group-prepend" >
<div class= "input-group-text" id= "btnGroupAddon" > @</div>
</div>
<input type= "text" class= "form-control" placeholder= "Input group example" aria-label= "Input group example" aria-describedby= "btnGroupAddon" >
</div>
</div>
<div class= "btn-toolbar justify-content-between" role= "toolbar" aria-label= "Toolbar with button groups" >
<div class= "btn-group" role= "group" aria-label= "First group" >
<button type= "button" class= "btn btn-secondary" > 1</button>
<button type= "button" class= "btn btn-secondary" > 2</button>
<button type= "button" class= "btn btn-secondary" > 3</button>
<button type= "button" class= "btn btn-secondary" > 4</button>
</div>
<div class= "input-group" >
<div class= "input-group-prepend" >
<div class= "input-group-text" id= "btnGroupAddon2" > @</div>
</div>
<input type= "text" class= "form-control" placeholder= "Input group example" aria-label= "Input group example" aria-describedby= "btnGroupAddon2" >
</div>
</div>
Emoĩ rangue mbo’esyry mboajepyréva botón rehegua opaite botón peteĩ atýpe, emoĩnte .btn-group-*
peteĩteĩme .btn-group
, oikehápe peteĩteĩva oñembohysýi jave heta aty.
Asu
Mbyte
Akatúa
Asu
Mbyte
Akatúa
Asu
Mbyte
Akatúa
Kopia
<div class= "btn-group btn-group-lg" role= "group" aria-label= "..." > ...</div>
<div class= "btn-group" role= "group" aria-label= "..." > ...</div>
<div class= "btn-group btn-group-sm" role= "group" aria-label= "..." > ...</div>
Emoĩ peteĩ .btn-group
ambue ryepýpe .btn-group
reipotáramo umi menú desplegable oñembojeheꞌa peteĩ serie de botón reheve.
1. 1.1
2. 2.1
Ñemboguejyha
Kopia
<div class= "btn-group" role= "group" aria-label= "Button group with nested dropdown" >
<button type= "button" class= "btn btn-secondary" > 1</button>
<button type= "button" class= "btn btn-secondary" > 2</button>
<div class= "btn-group" role= "group" >
<button id= "btnGroupDrop1" type= "button" class= "btn btn-secondary dropdown-toggle" data-toggle= "dropdown" aria-haspopup= "true" aria-expanded= "false" >
Dropdown
</button>
<div class= "dropdown-menu" aria-labelledby= "btnGroupDrop1" >
<a class= "dropdown-item" href= "#" > Dropdown link</a>
<a class= "dropdown-item" href= "#" > Dropdown link</a>
</div>
</div>
</div>
Variación vertical rehegua
Ejapo peteĩ conjunto de botón ojehechauka verticalmente apilado rangue horizontalmente. Umi botón ñemboja’o ñemboguejy ndojeguerohorýi ko’ápe.
Votõ
Votõ
Votõ
Votõ
Votõ
Votõ
Votõ
Votõ
Ñemboguejyha
Votõ
Votõ
Ñemboguejyha
Ñemboguejyha
Ñemboguejyha
Kopia
<div class= "btn-group-vertical" >
...
</div>