Ku xidh badhamada taxane ah hal xariiq oo keliya oo wata kooxda badhanka, oo aad ugu xoog weyn iyaga oo isticmaalaya JavaScript.
Tusaalaha aasaasiga ah
Ku duub badhamada taxane ah .btngudaha .btn-group. Ku dar raadiyaha JavaScript ee ikhtiyaarka ah iyo habdhaqanka qaabka sanduuqa hubinta adigoo isticmaalaya badhamadayada plugin .
Xaqiiji sax roleoo bixi calaamad
Si teknoolojiyadda caawinta (sida akhristayaasha shaashadda) ay u gudbiyaan in badhamada taxane ah la kooxeeyay, rolesifo habboon ayaa loo baahan yahay in la bixiyo. Kooxaha badhanka, tani waxay noqonaysaa role="group", halka aaladaha ay tahay inay lahaadaan a role="toolbar".
Intaa waxaa dheer, kooxaha iyo aaladaha waa in la siiyaa calaamad cad, maadaama inta badan tignoolajiyada caawinta aysan ku dhawaaqi doonin iyaga, in kasta oo ay jirto sifo doorka saxda ah. Tusaalooyinka halkan lagu soo bandhigay, waxaan isticmaalnaa aria-label, laakiin beddelka sida aria-labelledbysidoo kale waa la isticmaali karaa.
Qalabka badhanka
Isku-dubarid kooxo badhanno ah oo geli baararka aaladaha badhanka ee qaybo aad u adag. Isticmaal fasallada utility sida loogu baahdo si aad meel bannaan uga saarto kooxaha, badhamada, iyo in ka badan.
Dareen xornimo inaad ku qasto kooxaha wax gelinta iyo kooxaha badhanka ee ku jira aaladahaaga. Si la mid ah tusaalaha kore, waxaad u badan tahay inaad u baahan doonto xoogaa yutiilitida ah in kastoo si sax ah wax loo meeleeyo.
@
@
Cabbirka
Halkii aad ka codsan lahayd fasalada cabbirka badhanka badhanka kasta oo koox ah, kaliya ku dar .btn-group-*mid kasta .btn-group, oo ay ku jiraan mid kasta marka aad buul ka samaysanayso kooxo badan.
Buul
Meel .btn-groupkale .btn-groupgeli marka aad rabto liiska hoos-u-dhaca ee lagu qasay badhammo taxane ah.
Samee badhamada u muuqda kuwo toosan oo is dulsaaran halkii ay ahaan lahaayeen kuwo toosan. Hoos u dhigida badhanka kala qaybsan halkan lagama taageero.