SourceGulu la batani
Gwirizanitsani mabatani angapo pamzere umodzi ndi gulu la mabatani, ndikuwalimbitsa kwambiri ndi JavaScript.
Chitsanzo choyambirira
Manga mabatani angapo ndi .btn
mu .btn-group
. Onjezani pa wayilesi ya JavaScript yosankha komanso mawonekedwe a bokosi ndi mabatani athu owonjezera .
Onetsetsani kuti mwalondola role
ndikupereka chizindikiro
Kuti matekinoloje othandizira (monga owerenga skrini) awonetse kuti mabatani angapo agawidwa m'magulu, role
muyenera kuperekedwa mawonekedwe oyenera. Kwa magulu a mabatani, izi zitha kukhala role="group"
, pomwe zida zogwiritsira ntchito ziyenera kukhala ndi role="toolbar"
.
Kuonjezera apo, magulu ndi zida ziyenera kupatsidwa chizindikiro chomveka bwino, chifukwa matekinoloje ambiri othandizira sangawalengeze, ngakhale pali mbali yoyenera. Mu zitsanzo zomwe zaperekedwa apa, timagwiritsa ntchito aria-label
, koma njira zina aria-labelledby
zomwe zingagwiritsidwe ntchito.
Phatikizani ma seti amagulu a batani kukhala mabatani a zida zamagulu ovuta kwambiri. Gwiritsani ntchito makalasi ofunikira ngati pakufunika kugawa magulu, mabatani, ndi zina zambiri.
Khalani omasuka kusakaniza magulu olowa ndi magulu a mabatani muzitsulo zanu. Mofanana ndi chitsanzo pamwambapa, mungafunike zina zothandizira kuti muyike zinthu moyenera.
Kukula
M'malo mogwiritsa ntchito makalasi owerengera mabatani pa batani lililonse pagulu, ingowonjezerani .btn-group-*
pa chilichonse .btn-group
, kuphatikiza chilichonse mukamanga magulu angapo.
Nesting
Ikani .btn-group
mkati mwa ina .btn-group
pamene mukufuna mindandanda yotsitsa yosakanikirana ndi mabatani angapo.
Kusintha koyima
Pangani mabatani angapo kuti awoneke ngati atayikidwa molunjika osati mopingasa. Kutsikira kwa mabatani ogawanika sikutheka pano.