SourceItsinda rya buto
Shyira hamwe urukurikirane rwa buto hamwe kumurongo umwe hamwe na bouton itsinda, hanyuma super-power hamwe na JavaScript.
Urugero rwibanze
Kuzuza urukurikirane rwa buto hamwe .btn
na .btn-group
. Ongeraho kuri radio JavaScript itabishaka hamwe na cheque yisanduku yimyitwarire hamwe na buto yacu plugin .
Menya neza role
kandi utange ikirango
Kugirango tekinoroji ifasha (nkabasomyi ba ecran) kugirango yerekane ko urukurikirane rwa buto rwashyizwe hamwe, role
ikiranga gikwiye gutangwa. Kuri buto ya matsinda, ibi byaba role="group"
, mugihe ibikoresho byabigenewe bigomba kugira a role="toolbar"
.
Mubyongeyeho, amatsinda hamwe nibikoresho byifashishwa bigomba guhabwa ikirango gisobanutse, kuko tekinoroji nyinshi zifasha ntizishobora kubitangaza, nubwo hariho uruhare rukwiye rwiranga. Mu ngero zitangwa hano, turakoresha aria-label
, ariko ubundi nkibishobora aria-labelledby
gukoreshwa.
Huza ibice bya buto mumatsinda ya buto yumurongo wibikoresho byinshi bigoye. Koresha amasomo yingirakamaro nkuko bikenewe mumwanya wo hanze amatsinda, buto, nibindi byinshi.
Wumve neza ko uvanga amatsinda yinjiza hamwe na bouton matsinda mubikoresho byawe. Bisa nurugero hejuru, birashoboka ko uzakenera ibintu bimwe na bimwe nubwo kumwanya wibintu neza.
Ingano
Aho kugirango ushyireho buto ingero zamasomo kuri buri buto mumatsinda, gusa ongeraho .btn-group-*
kuri buri .btn-group
, ushizemo buriwese mugihe utera amatsinda menshi.
Icyari
Shira a .btn-group
mubindi .btn-group
mugihe ushaka ibitonyanga bivanze nurukurikirane rwa buto.
Guhindagurika
Kora urutonde rwa buto rugaragara ruhagaritse aho gutambuka. Gutandukanya buto yamanutse ntabwo ashyigikiwe hano.