Kooxaha liisku waa qayb dabacsan oo awood badan si ay u muujiyaan taxane taxane ah. Wax ka beddel oo u fidi si ay u taageeraan wax kasta oo ku jira.
Tusaalaha aasaasiga ah
Kooxda liiska ugu aasaasiga ah waa liis aan la dalban oo ay ku jiraan shay liis ah iyo fasalo habboon. Ku dul dhis xulashooyinka soo socda, ama CSS kaaga haddii loo baahdo.
Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Porta ac consectetur ac
Vestibulum iyo eros
Alaabada firfircoon
Ku dar .activesi aad .list-group-itemu muujiso doorashada firfircoon ee hadda
Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Porta ac consectetur ac
Vestibulum iyo eros
Alaabta naafada ah
Ku dar .disabledsi .list-group-itemaad ugu ekaato mid naafo ah. Ogsoonow in qaar ka mid ah walxaha wata .disableday sidoo kale u baahan doonaan JavaScript-ka caadiga ah si ay si buuxda u baabi'iyaan dhacdooyinka gujintooda (tusaale, iskuxirayaasha).
Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Porta ac consectetur ac
Vestibulum iyo eros
Xiriirinta iyo badhamada
Isticmaal <a>s ama <button>s si aad u abuurto liiska wax qabad ee shayyada kooxda oo leh dullid , naafo, iyo gobolo firfircoon adoo ku daraya .list-group-item-action. Waxaan u kala saarnay fasaladan been abuurka ah si aan u hubinno kooxaha liiska ka samaysan ee ka samaysan walxaha aan is-dhexgal ahayn (sida <li>s ama <div>s) ayan bixin wax riix ah ama taabasho lacag bixin ah.
U hubso inaadan isticmaalin .btnfasalada caadiga ah halkan .
s , <button>waxa kale oo aad isticmaali kartaa disabledsifada halkii aad ka isticmaali lahayd .disabledfasalka. Nasiib darrose, <a>s ma taageeraan sifada naafada.
Biyo raaci
Ku dar .list-group-flushsi aad uga saarto qaar ka mid ah xuduudaha iyo geesaha wareegsan si aad ugu muujiso liiska walxaha gees-ilaa-geeska weelka waalidka (tusaale, kaararka).
Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Porta ac consectetur ac
Vestibulum iyo eros
Horizontal
Ku dar .list-group-horizontalsi aad u beddesho qaabka liiska walxaha kooxda ka toosan una beddelo meel siman dhammaan meelaha jaban. Haddii kale, dooro kala duwanaansho jawaab .list-group-horizontal-{sm|md|lg|xl}celin leh si aad koox liis ah uga dhigto mid toosan oo ka bilaabmaya barta jabinta min-width. Hadda kooxaha liiska jiifka ah laguma dari karo kooxaha liistada.
ProTip: Ma rabtaa shay kooxeedka liiska ballaca siman marka ay toosan tahay? Ku dar .flex-fillliis kasta shay kooxeed
Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Cras justo odio
Dapibus ac facilisis in
Morbi leo risus
Fasalada macnaha guud
Isticmaal fasalo macnaha guud si aad u habayso liiska walxaha leh asal dawladeed iyo midab.
Dapibus ac facilisis in
Shayga liiska aasaasiga ah ee fudud
Shayga liiska sare ee fudud
Shayga liiska guusha fudud
Shayga liiska khatarta fudud
Shayga liiska digniinta fudud
Shayga liiska macluumaadka fudud
Shayga liiska fudud ee fudud
Shayga liiska madow fudud
Fasallada macnuhu waxa kale oo ay la shaqeeyaan .list-group-item-action. U fiirso ku darida qaababka dullidda halkan kuma jiraan tusaalihii hore. Waxa kale oo la taageeraa .activedawladda; Codso si aad u muujiso xulashada firfircoon ee shayga liiska macnaha guud.
Isticmaalka midabka si loogu daro macnaha kaliya waxay bixisaa tilmaam muuqaal ah, taas oo aan loo gudbin doonin isticmaalayaasha tignoolajiyada caawinta - sida akhristayaasha shaashadda. Hubi in macluumaadka lagu tilmaamay midabku ay ka cad yihiin waxa ku jira laftiisa (tusaale qoraalka muuqda), ama lagu soo daro habab kale, sida qoraal dheeraad ah oo .sr-onlyfasalka dhexdiisa ku qarsoon.
Calaamado wata
Ku dar calaamado liis kasta shay kooxeed si aad u muujiso tirooyinka aan la akhriyin, nashaadaadka, iyo wax ka badan iyadoo la kaashanayo adeegyada qaarkood .
Cras justo odio14
Dapibus ac facilisis in2
Morbi leo risus1
Waxyaabaha gaarka ah
Ku dar ku dhawaad HTML kasta, xitaa kooxaha liiska ku xiran sida kan hoose, iyadoo la kaashanayo flexbox utilities .
Isticmaal tab JavaScript plugin-ku dar si gaar ah ama iyada oo loo marayo bootstrap.jsfaylka la soo ururiyey-si loo kordhiyo kooxdayada liiska si aan u abuurno muraayado la taaban karo oo ka kooban gudaha.
Velit aute mollit ipsum ad dolor consectetur nulla officia culpa adipisicing jimicsiga fugiat tempor. Voluptate deserunt sit sunt nisi aliqua fugiat proident ea ut. Mollit voluptate reprehenderit occaecat nisi iyo wax yar oo ku meel gaar ah sunt voluptate consectetur jimicsi id ut nulla. Ea et fugiat aliquip nostrud sunt inciddunt 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.
U oggolow liiska shayga la taaban karo iyada oo loo marayo JavaScript ( shayga liis kastaa wuxuu u baahan yahay in si gaar ah loo hawlgeliyo):
Waxaad u dhaqaajin kartaa shayga liiska gaarka ah dhowr siyaabood:
Saamaynta libdhi
Si loo sameeyo tabs panel in ay libdhaan, ku dar .fademid kasta .tab-pane. Shabakadda ugu horreysa waa inay sidoo kale ka .showdhigtaa nuxurka bilowga ah mid muuqda.
Hababka
$() tab
Wuxuu hawlgeliyaa walxaha liiska iyo weelka ka kooban. Tabku waa inuu lahaadaa mid data-targetama meel la hrefbeegsanayo noodhka weelka ee DOM.
.tab('show')
Wuxuu doortaa shayga liiska la bixiyay oo tusaya shayga la xidhiidha. Shayga kale ee liiska hore loo doortay waxa uu noqdaa mid aan la dooran oo shayga la xidhiidha waa qarsoon yahay. Ku soo noqoshada soo wacaha ka hor inta aan la tusin muraayadda tab (tusaale, ka hor intaanay shown.bs.tabdhacdada dhicin).
Dhacdooyinka
Marka la tuso tab cusub, dhacdooyinku waxay u dabcaan sida soo socota:
hide.bs.tab(ku yaal tab firfircoon ee hadda)
show.bs.tab(ku yaal tabka lagu soo bandhigi doono)
hidden.bs.tab(ee tabtii hore ee firfircoonayd, oo la mid ah hide.bs.tabdhacdada)
shown.bs.tab(oo ku yaal tab cusub oo firfircoon, oo la mid ah show.bs.tabdhacdada)
Haddi aanu tab hore u shaqayn, dhacdooyinka hide.bs.tabiyo hidden.bs.tabdhacdooyinka lama eryo
Nooca dhacdada
Sharaxaada
show.bs.tab
Dhacdadani waxay ku socotaa bandhigga tab, laakiin ka hor intaan tab cusub la muujin. Isticmaal event.targetoo event.relatedTargetaad beegsato tab firfircooni iyo tabtii hore ee firfircoonayd (haddii la heli karo) siday u kala horreeyaan.
tusay.bs.tab
Dhacdadani waxay ku gubanaysaa bandhiga tab ka dib marka tab la tuso. Isticmaal event.targetoo event.relatedTargetaad beegsato tab firfircooni iyo tabtii hore ee firfircoonayd (haddii la heli karo) siday u kala horreeyaan.
qari.bs.tab
Dhacdadani waxay dab kacaysaa marka tab cusub la muujinayo (oo sidaas awgeed tabtii hore ee firfircoonayd waa in la qariyaa). Isticmaal event.targetoo event.relatedTargetaad beegsato tab firfircoon ee hadda iyo ta cusub ee dhawaan-wax-qaban doona, siday u kala horreeyaan.
qarsoon.bs.tab
Dhacdadani waxay dabaysaa ka dib marka tab cusub la muujiyo (oo sidaas awgeed tabtii hore ee firfircoonayd ayaa qarsoon). Isticmaal event.targetoo event.relatedTargetaad beegsato tabtii hore ee firfircoonayd iyo tab cusub ee firfircoon, siday u kala horreeyaan.