Grup wan siriɔs bɔtin dɛn togɛda na wan layn wit di bɔtin grup, ɛn supa-pawa dɛn wit JavaSkript.
Besik ɛgzampul
Rap wan siriɔs bɔtin dɛn wit .btnin .btn-group. Ad pan opshɔnal JavaSkript redio ɛn chɛkbɔks stayl bihayvya wit wi bɔtin dɛn plɔgin .
Mek shɔ se kɔrɛkt roleɛn gi yu wan lɛbl
Fɔ mek dɛn ebul fɔ ɛp tɛknɔlɔji dɛn (lɛk skrin rida dɛn) fɔ sho se dɛn dɔn grup wan siriɔs bɔtin dɛn, roledɛn nid fɔ gi wan atribyut we fit. Fɔ bɔtin grup dɛn, dis go bi role="group", we di tulba dɛn fɔ gɛt wan role="toolbar".
Apat frɔm dat, dɛn fɔ gi grup ɛn tulba dɛn wan klia lɛbul, bikɔs bɔku pan di ɛtɛknɔlɔji dɛn we de ɛp ɔda we nɔ go anɔys dɛn, pan ɔl we di kɔrɛkt rol atribyut de. Insay di ɛgzampul dɛn we dɛn gi ya, wi de yuz aria-label, bɔt dɛn aria-labelledbykin yuz ɔda we dɛn lɛk bak.
Di tulba fɔ di bɔtin
Kɔmbayn sɛt dɛn fɔ bɔtin grup dɛn insay bɔtin tulba dɛn fɔ mɔ kɔmpleks kɔmpɔnɛnt dɛn. Yuz yutiliti klas dɛn as nid de fɔ spɛs grup dɛn, bɔtin dɛn, ɛn ɔda tin dɛn.
Fil fri fɔ miks input grup dɛn wit bɔtin grup dɛn na yu tulba dɛn. Semweso lɛk di ɛgzampul we de ɔp, yu go mɔs nid sɔm yutiliti dɛn pan ɔl we fɔ spɛshal tin dɛn fayn fayn wan.
@
@
Sayz fɔ di sayz
Bifo yu yuz bɔtin saiz klas dɛn to ɛvri bɔtin na wan grup, jɔs ad .btn-group-*to ɛni wan pan dɛn .btn-group, inklud ɛni wan pan dɛn we yu de nɛst bɔku grup dɛn.
Fɔ mek dɛn nɛst
Put wan .btn-groupinsay ɔda wan .btn-groupwe yu want drɔpdɔwn mɛnyu dɛn miks wit wan siriɔs bɔtin dɛn.