Cov pab pawg sau npe yooj yim tshaj plaws yog cov npe tsis muaj npe nrog cov npe khoom thiab cov chav kawm tsim nyog. Ua rau nws nrog cov kev xaiv ua raws, lossis nrog koj tus kheej CSS raws li xav tau.
Cras justo odio
Dapibus ac facilisis nyob rau hauv
Morbi leo risus
Porta ac consectetur ac
Vestibulum thiab eros
Cov khoom nquag
Ntxiv .activerau qhov .list-group-itemqhia txog kev xaiv tam sim no.
Cras justo odio
Dapibus ac facilisis nyob rau hauv
Morbi leo risus
Porta ac consectetur ac
Vestibulum thiab eros
Cov khoom xiam oob qhab
Ntxiv .disabledrau qhov .list-group-itemua rau nws tshwm tsis taus. Nco ntsoov tias qee cov ntsiab lus nrog .disabledkuj yuav xav tau kev cai JavaScript kom ua tiav lawv cov xwm txheej nyem (piv txwv li, txuas).
Cras justo odio
Dapibus ac facilisis nyob rau hauv
Morbi leo risus
Porta ac consectetur ac
Vestibulum thiab eros
Txuas thiab khawm
Siv <a>s los yog <button>s los tsim cov npe ua haujlwm pab pawg nrog hover, disabled, thiab active xeev los ntawm kev ntxiv .list-group-item-action. Peb cais cov pseudo-chav kawm no kom paub meej cov npe pawg ua los ntawm cov ntsiab lus tsis sib cuam tshuam (xws li <li>s lossis <div>s) tsis muab kev nias lossis kais them nyiaj.
Siv lub tab JavaScript plugin - suav nrog nws tus kheej lossis los ntawm cov ntaub ntawv sau ua ke bootstrap.js- txhawm rau txuas peb cov npe pawg los tsim cov tabbable panes ntawm cov ntsiab lus hauv zos.
Velit aute mollit ipsum ad dolor consectetur nulla officia culpa adipisicing exercitation fugiat tempor. Voluptate deserunt zaum sunt nisi aliqua fugiat proident ea ut. Mollit voluptate reprehenderit occaecat nisi ad non minim tempor sunt voluptate consectetur exercitation id ut nulla. Ea et fugiat aliquip nostrud sunt incididunt consectetur culpa aliquip eiusmod dolor. Anim ad Lorem aliqua in cupidatat nisi enim eu nostrud do aliquip veniam minim.
Cupidatat quis ad sint excepteur laborum in esse qui. Et excepteur consectetur ex nisi eu do cillum ad laborum. Mollit et eu officia dolore sunt Lorem culpa qui commodo velit ex amet id ex. Officia anim incididunt laboris deserunt anim aute dolor incididunt veniam aute dolore do exercitation. Dolor nisi culpa ex ad irure in elit eu dolore. Ad laboris ipsum reprehenderit irure non commodo enim culpa commodo veniam incididunt veniam ad.
Ut ut do pariatur aliquip aliqua aliquip exercitation do nostrud commodo reprehenderit aute ipsum voluptate. Irure Lorem et laboris nostrud amet cupidatat cupidatat anim do ut velit mollit consequat enim tempor. Consectetur est minim nostrud nostrud consectetur irure labore voluptate irure. Ipsum id Lorem sit sint voluptate est pariatur eu ad cupidatat et deserunt culpa sit eiusmod deserunt. Consectetur et fugiat anim do eiusmod aliquip nulla laborum elit adipisicing pariatur cillum.
Irure enim occaecat labore sit qui aliquip reprehenderit amet velit. Deserunt ullamco ex elit nostrud ut dolore nisi officia magna sit occaecat laboris sunt dolor. Nisi eu minim cillum occaecat aute est cupidatat aliqua labore aute occaecat ea aliquip sunt amet. Aute mollit dolor ut exercitation irure commodo non amet consectetur quis amet culpa. Quis ullamco nisi amet qui aute irure eu. Magna labore dolor quis ex labore id nostrud deserunt dolor eiusmod eu pariatur culpa mollit in irure.
Siv cov ntaub ntawv tus cwj pwm
Koj tuaj yeem qhib cov npe pab pawg navigation yam tsis tau sau ib qho JavaScript los ntawm kev qhia yooj yim data-toggle="list"lossis ntawm lub ntsiab lus. Siv cov ntaub ntawv tus cwj pwm ntawm .list-group-item.
Ntawm JavaScript
Pab kom tabbable cov npe khoom ntawm JavaScript (txhua daim ntawv teev npe yuav tsum tau qhib ib tus zuj zus):
Txhawm rau ua kom lub vaj huam sib luag ploj mus, ntxiv .faderau txhua qhov .tab-pane. Thawj tab pane yuav tsum tau .showua kom pom cov ntsiab lus thawj zaug.
Cov txheej txheem
$().tab
Activates ib daim ntawv teev cov ntsiab lus thiab cov ntsiab lus ntim. Tab yuav tsum muaj ib data-targetlossis ib lub hrefhom phiaj rau lub thawv ntim hauv DOM.
.tab('show')
Selects the given list item and shows its associated pane. Any other list item that was previously selected becomes unselected and its associated pane is hidden. Returns to the caller before the tab pane has actually been shown (for example, before the shown.bs.tab event occurs).
Events
When showing a new tab, the events fire in the following order:
hide.bs.tab (on the current active tab)
show.bs.tab (on the to-be-shown tab)
hidden.bs.tab (on the previous active tab, the same one as for the hide.bs.tab event)
shown.bs.tab (on the newly-active just-shown tab, the same one as for the show.bs.tab event)
If no tab was already active, the hide.bs.tab and hidden.bs.tab events will not be fired.
Event type
Description
show.bs.tab
This event fires on tab show, but before the new tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
shown.bs.tab
This event fires on tab show after a tab has been shown. Use event.target and event.relatedTarget to target the active tab and the previous active tab (if available) respectively.
hide.bs.tab
This event fires when a new tab is to be shown (and thus the previous active tab is to be hidden). Use event.target and event.relatedTarget to target the current active tab and the new soon-to-be-active tab, respectively.
hidden.bs.tab
This event fires after a new tab is shown (and thus the previous active tab is hidden). Use event.target and event.relatedTarget to target the previous active tab and the new active tab, respectively.