SourceIqela lamaqhosha
Iqela uthotho lwamaqhosha kunye kumgca omnye kunye neqela leqhosha, kwaye unamandla amakhulu ngeJavaScript.
Umzekelo osisiseko
Gquba uthotho lwamaqhosha .btn
nge- .btn-group
. Yongeza unomathotholo weJavaScript okhethiweyo kunye nokuziphatha kwesimbo sebhokisi ngamaqhosha ethu eplagi .
Qinisekisa ukuba ichanekile role
kwaye unikeze ileyibhile
Ukwenzela ukuba iitekhnoloji ezincedisayo (ezifana nezifundi zesikrini) zibonise ukuba uthotho lwamaqhosha abekwe ngokwamaqela, role
kufuneka kubonelelwe ngophawu olufanelekileyo. Kumaqela amaqhosha, oku kuyakuba role="group"
, ngelixa iibar zesixhobo kufuneka zibe ne role="toolbar"
.
Ukongeza, amaqela kunye neebar zesixhobo kufuneka zinikwe ileyibhile ecacileyo, njengoko uninzi lwetekhnoloji ezincedisayo aziyi kuzibhengeza, nangona kukho uphawu lwendima oluchanekileyo. Kwimizekelo enikelwe apha, sisebenzisa aria-label
, kodwa ezinye iindlela aria-labelledby
ezinokuthi zisetyenziswe.
Dibanisa iiseti zamaqela amaqhosha kwibar yesixhobo seqhosha kumacandelo anzima ngakumbi. Sebenzisa iiklasi eziluncedo njengoko zifuneka ukubeka amaqela, amaqhosha, kunye nokunye.
Zive ukhululekile ukudibanisa amaqela egalelo kunye namaqela amaqhosha kwibar yesixhobo sakho. Ngokufana nomzekelo ongasentla, uya kufuna ezinye izinto eziluncedo ukuze ubeke izinto ngokufanelekileyo.
Ubungakanani
Endaweni yokufaka iiklasi zokulinganisa iqhosha kwiqhosha ngalinye kwiqela, yongeza .btn-group-*
nje kwelinye .btn-group
, kuquka nganye xa ufunxa amaqela amaninzi.
Ukuzalela
Faka .btn-group
phakathi kwenye .btn-group
xa ufuna iimenu ezihlayo ezixutywe nothotho lwamaqhosha.
Ukwahluka ngokuthe nkqo
Yenza isethi yamaqhosha abonakale epakishwe ngokuthe nkqo kunokuba uthe tye. Uwiso lweqhosha lokwahlula aluxhaswa apha.