Bootstrap-a component hrang hrangte chu nunna pe rawh—tunah chuan custom jQuery plugin 12 a awm tawh.
A streamlined, mahse flexible, take on the traditional javascript modal plugin a mamawh tlem ber functionality leh smart defaults chauh a nei.
He plugin awlsam tak hmang hian Bootstrap-a thil awm zawng zawngah dropdown menu dah belh theih a ni. Bootstrap hian navbar, tabs leh pills ah te full dropdown menu support on a nei a.
Scrollspy hmangin i navbar-a link awmte chu automatic-in update la, scroll awmna hmun a zirin tuna active link awm chu a rawn lang ang.
He plugin hmang hian tab leh pills te chu local content tabbable pane kaltlangin toggle theihna tur siamin a tangkai zawk theih nan hmang ang che.
jQuery Tipsy plugin-a take thar, Tooltips hian image-ah an innghat lo—animation atan CSS3 an hmang a, local title storage atan data-attribute an hmang bawk.
Secondary information dahna tur element eng pawhah iPad-a awm ang chi content overlay te te te dah belh rawh.
* Tooltips te dah tel a ngai
Alert plugin hi alert-a close functionality dahna tur class te tak te a ni.
Button hmangin tam zawk ti rawh. Control button state emaw toolbar ang chi component tam zawk tan button group siam emaw a ni.
Accordion leh navigation ang chi collapsible component hrang hrangte tan base style leh flexible support dawng rawh.
Content i duh apiang merry-go-round siam la, content interactive slideshow pe rawh.
Eng form text input pawha elegant typeaheads rang taka siam theihna tur plugin bulpui, awlsam taka tihzauh theih.
Transition effect awlsam tak tak atan chuan bootstrap-transition.js vawi khat dah la, modal-a slide emaw, alerts fade out emaw theih a ni.
* Plugin-a animation atan a ngai
A streamlined, mahse flexible, take on the traditional javascript modal plugin a mamawh tlem ber functionality leh smart defaults chauh a nei.
File chu download rawhA hnuaia tarlan te hi statically rendered modal a ni.
Taksa tha tak pakhat...
A hnuaia button hi click la, javascript hmangin modal pakhat toggle rawh. A hnuai lam a pan ang a, page chunglam atang chuan a fade in ang.
Demo modal chu tlangzarh rawhJavascript hmangin modal chu call rawh:
- $ ( '#kaModal' ). modal ( duhthlan tur ) .
Hming | lampang | hlawhchhamna | hrilhfiahna |
---|---|---|---|
backdrop a ni | boolean a ni | dik | Modal-backdrop element a awm bawk. static A nih loh leh, click-a modal khar lo backdrop atan specify bawk ang che. |
keyboard hmangin a ziak a | boolean a ni | dik | Escape key i hmet chuan modal a khar thin |
lantir | boolean a ni | dik | Initialized hunah modal a lantir. |
I page-ah hian awlsam takin javascript line khat pawh ziak ngai lovin i activate thei a ni. data-toggle="modal"
Controller element pakhatah set mai la , a data-target="#foo"
or href="#foo"
which corresponds to a modal element id, i click chuan i modal chu a launch ang.
Tin, i modal instance-a option dah belh tur chuan control element emaw, modal markup ngeiah emaw data attribute dang angin dah mai rawh.
- <a class = "btn" data-toggle = "modal" href = "#myModal" > Modal chu tlangzarh rawh </a>
- <div class = "modal thup" id = "kaModal" >
- <div class = "modal-a thupui" >
- <button type = "button" class = "khar" data-dismiss = "modal" > × </button>
- <h3> Modal header </h3> tih a ni
- </div> tih a ni
- <div class = "taksa-modal" > tih hi a ni
- <p> Taksa tha tak pakhat... </p>
- </div> tih a ni
- <div class = "modal-a hnuai lam" >
- <a href = "#" class = "btn" data-dismiss = "modal" > khar rawh </a>
- <a href = "#" class = "btn btn-primary" > Thil danglamte chu dahkhawm rawh </a>
- </div> tih a ni
- </div> tih a ni
.fade
ah class
dah mai la .modal
(hei hi action a hmuh theih nan demo en la) bootstrap-transition.js te pawh dah tel bawk ang che.
I content chu modal angin a activate thin. A pawm a, optional options a awm object
bawk .
- $ ( '#kaModal' ). modal ({ ) a ni.
- keyboard : a dik lo
- }) tih a ni.
Modal pakhat chu manual in a toggle thin.
- $ ( '#kaModal' ). modal ( 'toggle' tih a ni.
Manual takin modal a hawng thin.
- $ ( '#kaModal' ). modal ( 'tihlan rawh' ) .
Manual takin modal a thup thin.
- $ ( '#kaModal' ). modal ( ‘thup’ ) tih a ni.
Bootstrap-a modal class hian modal functionality-a hooking-na tur event tlemte a pholang a ni.
Hunbik | Hrilhfiahna |
---|---|
lantir | show He event hi instance method kan koh chuan a fire nghal vek a ni. |
tih a ni | He event hi modal chu user hmuh theiha siam a nih hunah fire a ni (css transitions zawh hun a nghak ang). |
biru | hide He event hi instance method koh a nih chuan a fire nghal a ni. |
thuhruk | He event hi modal chu user hnen atanga thup a nih zawh chuan a fire thin (css transitions zawh hun a nghak ang). |
- $ ( '#kaModal' ). on ( 'thup' , hnathawh () { .
- // thil engemaw ti rawh...
- }) tih a ni.
He plugin awlsam tak hmang hian Bootstrap-a thil awm zawng zawngah dropdown menu dah belh theih a ni. Bootstrap hian navbar, tabs leh pills ah te full dropdown menu support on a nei a.
File chu download rawhA hnuaia navbar leh pills a dropdown nav links te kha click la, dropdown te test rawh.
Javascript hmangin dropdown te chu call la:
- $ ( '.thlauhna-toggle' ). dropdown () a ni.
Element eng pawha dropdown functionality rang taka dah tur chuan add mai la data-toggle="dropdown"
, bootstrap dropdown dik tak eng pawh chu automatic in a activate ang.
data-target="#fat"
I duh duhin dropdown bik chu or
hmangin i target thei ang
href="#fat"
.
- <ul class = "nav nav-pills" > tih hi a awmzia a awm lo
- <li class = "active" ><a href = "#" > A chhuahna tur hmun leh a hmanna tur hmun </a></li>
- A rilru a buai em em a, a rilru a hah em em bawk a . id = " menu1 " >
- <a class = "a tlak thlak" data-toggle = "a tlak hniam" href = "#menu1" >
- Dropdown a ni
- < b class = "caret" tih hi a awmzia a awm lo
- </a> tih a ni
- <ul class = "a hnuaia mi ang hian" >
- <li><a href = "#" > Thiltih tur </a></li>
- <li><a href = "#" > Thiltih dang </a></li>
- <li><a href = "#" > Hetah hian thil dang </a></li>
- <li class = "insem darhtu" </li> tih a ni
- <li><a href = "#" > Link hrang hrang </a></li>
- </ul> tih a ni
- </li> tih a ni
- ...
- </ul> tih a ni
URL te chu a awm reng theih nan , data-target
tih aiah attribute hmang la href="#"
.
- <ul class = "nav nav-pills" > tih hi a awmzia a awm lo
- <li class = "a tlak thlak" >
- <a class = "a chhuahsan-toggle" data-toggle = "dropdown" data-target = "#" href = "kawng/a/page.html" >
- Dropdown a ni
- < b class = "caret" tih hi a awmzia a awm lo
- </a> tih a ni
- <ul class = "a hnuaia mi ang hian" >
- ...
- </ul> tih a ni
- </li> tih a ni
- </ul> tih a ni
Navbar emaw tabbed navigation pek tawh pakhat tana menu activate na tur programatic api.
ScrollSpy plugin hi scroll position a zirin nav target te automatic a update theihna tur a ni.
File chu download rawhA hnuaia area hi scroll la, navigation update chu en rawh. Dropdown sub items te pawh a rawn lang ang. Tih ve teh!
A rilru a buai em em a, a rilru a hah em em bawk a. Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi an hralh chhuah hma qui. Tumblr farm-to-table bicycle dikna eng pawh ni se. Anim keffiyeh chuan carles cardigan a ti a. Velit seitan mcsweeney thlalak booth 3 savawm thla irure. A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a, a rilru a hah em em bawk a, a rilru a hah em em bawk a, a rilru a hah em em bawk a. et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh kut hnathawktu ullamco consequat.
Veniam marfa hmul nei skateboard, adipisicing fugiat velit pitchfork hmul. A rilru a buai em em a, a rilru a hah em em bawk a. mcsweeney's vero. Cupidatat pali loko nisi, ea helvetica nulla carles. Tattoo nei cosby sweater ei tur phur truck, mcsweeney-a quis non freegan vinyl a ni. Lo-fi wes anderson +1 chuan a rawn ti a. A rilru a buai em em a, a rilru a hah em em bawk a. Carles non aesthetic exercise quis gentrify. Brooklyn adipisicing kutchhuak beer vice keytar deserunt.
Occaecat commodo a ni a, a hnah hi a hring vek a ni. A rilru a buai em em a, a rilru a hah em em bawk a. Fap craft beer deserunt skateboard ea. Lomo bicycle rights adipisicing banh mi, velit ea sunt next level locavore pakhat chauh awmna coffee in magna veniam. Nunna sang id vinyl, echo park consequat quis aliquip banh mi pitchfork. Vero VHS chuan a ti a. Consectetur nisi DIY messenger bag tlem ber a ni. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. fanny pack iphone.
In incididunt echo park, officia deserunt mcsweeney's proident master cleanse thundercats sapiente veniam. Excepteur VHS elit, proident shoreditch +1 biodiesel laborum craft beer. Single-origin coffee wayfarers irure four loko, cupidatat terry richardson master cleanse. Assumenda you probably haven't heard of them art party fanny pack, tattooed nulla cardigan tempor ad. Proident wolf nesciunt sartorial keffiyeh eu banh mi sustainable. Elit wolf voluptate, lo-fi ea portland before they sold out four loko. Locavore enim nostrud mlkshk brooklyn nesciunt.
Ad leggings keytar, brunch id art party dolor labore. Pitchfork yr enim lo-fi before they sold out qui. Tumblr farm-to-table bicycle rights whatever. Anim keffiyeh carles cardigan. Velit seitan mcsweeney's photo booth 3 wolf moon irure. Cosby sweater lomo jean shorts, williamsburg hoodie minim qui you probably haven't heard of them et cardigan trust fund culpa biodiesel wes anderson aesthetic. Nihil tattooed accusamus, cred irony biodiesel keffiyeh artisan ullamco consequat.
Keytar twee blog, culpa messenger bag marfa eng pawh delectus ei tur phur truck. A rilru a buai em em a, a rilru a hah em em bawk a. id assumenda. Locavore sed helvetica cliche irony, thundercats te hi i hre lo mai thei consequat hoodie gluten-free lo-fi fap aliquip. Laboure elit placeat an hralh zawh hmain, terry richardson proident brunch nesciunt quis cosby sweater pariatur keffiyeh ut helvetica artisan. Cardigan craft beer seitan siam fel vek velit a ni. VHS chambray laboris hun rei lote chhunga hman theih a ni. A rilru a buai em em a, a rilru a hah em em bawk a.
Javascript hmangin scrollspy chu ko rawh:
- $ ( '#navbar' tih chu a ni). lehkhabu zial () .
I topbar navigation-a awlsam taka scrollspy behavior dah belh data-spy="scroll"
tur chuan i spy duh element-ah dah mai rawh (most typically hei hi body a ni ang).
- <taksa data-spy = "scroll" > ... </body> tih hi a ni
<a href="#home">home</a>
chu dom-a thil awm ang chi nen a inmil tur a
<div id="home"></div>
ni.
DOM atanga elements dah belh emaw paih emaw nena inzawma scrollspy hman hian refresh method chu hetiang hian i ko a ngai ang:
- $ ( '[data-spy="scroll"]' tih a ni ang. pakhat zel ( hnathawh () { .
- var $spy = $ ( hei hi ) a ni. scrollspy ( ‘thar thar’ ) tih a ni.
- });
Hming | lampang | hlawhchhamna | hrilhfiahna |
---|---|---|---|
offset a ni | a zat | 10 a ni | Scroll awmna tur chhut hunah chunglam atanga offset tur pixels. |
Hunbik | Hrilhfiahna |
---|---|
activate rawh | He event hi scrollspy-in item thar a activate apiangin a fire thin. |
He plugin hian local content hmanga inthlak danglamna tur tab leh pill functionality rang tak, dynamic tak a dah belh a ni.
File chu download rawhA hnuaia tabs te hi click la, hidden pane te inkarah toggle la, dropdown menu hmang pawhin.
Raw denim i la hre lo mai thei jean shorts Austin. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Retro synth master cleanse. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. A rilru a buai em em a, a rilru a hah em em bawk a. dreamcatcher synth. Cosby sweater eu banh mi, qui irure terry richardson ex squid a ni a, a man pawh a tlawm hle. A rilru a buai em em a, a rilru a hah em em bawk a. salvia cillum iphone. Seitan aliquip quis cardigan american thawmhnaw, sa thattu voluptate nisi qui.
Food truck fixie locavore, accusamus mcsweeney's marfa nulla single-origin coffee squid. Exercitation +1 labore velit, blog sartorial PBR leggings next level wes anderson artisan four loko farm-to-table craft beer twee. Qui photo booth letterpress, commodo enim craft beer mlkshk aliquip jean shorts ullamco ad vinyl cillum PBR. Homo nostrud organic, assumenda labore aesthetic magna delectus mollit. Keytar helvetica VHS salvia yr, vero magna velit sapiente labore stumptown. Vegan fanny pack odio cillum wes anderson 8-bit, sustainable jean shorts beard ut DIY ethical culpa terry richardson biodiesel. Art party scenester stumptown, tumblr butcher vero sint qui sapiente accusamus tattooed echo park.
Etsy mixtape wayfarers, ethical wes anderson tofu before they sold out mcsweeney's organic lomo retro fanny pack lo-fi farm-to-table readymade. Messenger bag gentrify pitchfork tattooed craft beer, iphone skateboard locavore carles etsy salvia banksy hoodie helvetica. DIY synth PBR banksy irony. Leggings gentrify squid 8-bit cred pitchfork. Williamsburg banh mi whatever gluten-free, carles pitchfork biodiesel fixie etsy retro mlkshk vice blog. Scenester cred you probably haven't heard of them, vinyl craft beer blog stumptown. Pitchfork sustainable tofu synth chambray yr.
Trust fund seitan letterpress, keytar raw denim keffiyeh etsy art party an hralh chhuah hmaa master cleanse gluten-free squid scenester freegan cosby sweater. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. Fanny pack portland seitan DIY, art party locavore wolf cliche high life echo park Austin. Cred vinyl keffiyeh DIY salvia PBR, banh mi an hralh chhuah hma khan farm-to-table VHS viral locavore cosby sweater an hralh chhuak a. Lomo savawm viral, hmul readymade thundercats keffiyeh craft beer marfa ethical. A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. echo park vegan.
Javascript hmangin tabbable tabs te chu enable rawh (tab tin hi a hranin activate a ngai a ni):
- $ ( '#kaTab a' ). click ( function ( e )) chu a rawn lang a.
- e . venhimnaDefault ();
- $ ( hei hi ). tab ( 'entir rawh' );
- }) tih a ni.
Tab hrang hrangte chu kawng hrang hrangin i activate thei ang:
- $ ( '#kaTab a[href="#profile"]' ). tab ( 'entir rawh' ); // Tab hming hmangin thlang rawh
- $ ( '#kaTab a: hmasa ber' ). tab ( 'entir rawh' ); // Tab hmasa ber thlang rawh
- $ ( '#kaTab a:a hnuhnung ber' ). tab ( 'entir rawh' ); // Tab hnuhnung ber thlang rawh
- $ ( '#ka Tab li:eq(2) a' ). tab ( 'entir rawh' ); // Tab pathumna thlang rawh (0-indexed) .
Javascript engmah ziak lovin tab emaw pill navigation emaw chu element pakhat specify data-toggle="tab"
emaw on emaw mai mai hmangin i activate thei ang. Tab-a and class te data-toggle="pill"
dah chuan bootstrap tab styling a apply ang.nav
nav-tabs
ul
- <ul class = "nav-tabs" > tih hi a awmzia a awm lo
- <li><a href = "#in" data-toggle = "tab" > A chhuahna tur hmun </a> </li>
- <li><a href = "#profile" data-toggle = "tab" > A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a
- <li><a href = "#thuchah" data-toggle = "tab" > Thuchah </a></li>
- <li><a href = "#settings" data-toggle = "tab" > A chhuahna tur hmun leh a hmanna tur hmun </a></li>
- </ul> tih a ni
Tab element leh content container pakhat a activate thin. Tab hian DOM ah container node targeting a data-target
emaw a nei tur a ni.href
- A rilru a buai em em a, a rilru a hah em em bawk a. id = " myTab " >
- <li class = "active" ><a href = "#in" > In leh lo </a></li>
- <li><a href = "#profile" > A chhuahna tur hmun leh a hmanna tur hmun </a></li>
- <li><a href = "#thuchah" > Thuchah </a></li>
- <li><a href = "#settings" > A chhuahna tur hmun leh a hmanna tur hmun </a></li>
- </ul> tih a ni
- <div class = "tab-a thu awmte" >
- <div class = "tab-pane active" id = "in" > ... </div> tih a ni
- A rilru a hah lutuk chuan a rilru a buai em em a, a rilru a hah lutuk chuan a rilru a buai em em bawk a. <div class = "tab-pane" id = "profile" > ... </div>
- <div class = "tab-pane" id = "thuchah" > ... </div> tih a ni
- <div class = "tab-pane" id = "settings" > ... </div> tih hi a ni
- </div> tih a ni
- <script> tih a ni
- $ ( hnathawh () { .
- $ ( '#kaTab a:a hnuhnung ber' ). tab ( 'entir rawh' );
- }) tih a ni.
- </script> tih a ni
Hunbik | Hrilhfiahna |
---|---|
lantir | He event hi tab show-ah a fire a, mahse tab thar a lan hmain a fire thin. Active tab leh a hmaa active tab (a awm chuan) te target turin event.target and hmang ang che .event.relatedTarget |
tih a ni | He event hi tab pakhat a lan hnuah tab show ah a fire thin. Active tab leh a hmaa active tab (a awm chuan) te target turin event.target and hmang ang che .event.relatedTarget |
- $ ( 'a[data-toggle="tab"]' tih a ni a, a hlawhtlinna chu a hlawhtlinna a ni. on ( 'a entir' , function ( e ) { .
- e . target // tihchhuah tab a ni
- e . relatedTarget // tab hmasa ber a ni
- }) tih a ni.
Jason Frame ziah jQuery.tipsy plugin tha tak atanga infuih thar; Tooltips hi updated version a ni a, image-ah a innghat lo va, animation atan css3 a hmang a, local title storage atan data-attribute a hmang bawk.
File chu download rawhA hnuaia link te hi hover la, tooltips i hmu ang:
Tight pants next level keffiyeh i la hre lo ngei ang. Thlalak booth hmul raw denim letterpress vegan palai bag stumptown. Farm-to-table seitan, mcsweeney-a fixie sustainable quinoa 8-bit american apparel te chuan terry richardson vinyl chambray an nei a, an thil siam chu an hlim hle. Beard stumptown, cardigans banh mi lomo zing khawvar. Tofu biodiesel williamsburg marfa, pali loko mcsweeney chuan vegan chambray a tifai a. A really ironic artisan whatever keytar , scenester farm-to-table banksy Austin twitter handle freegan cred raw denim single-origin coffee viral a ni.
Javascript hmangin tooltip chu trigger la:
- $ ( '#entirna' ). tooltip ( duhthlan tur ) .
Hming | lampang | hlawhchhamna | hrilhfiahna |
---|---|---|---|
animation tih a ni | boolean a ni | dik | tooltip ah css fade transition hmangin apply rawh |
dahna tur hmun a ni | string|a hnathawh dan | 'chung' | tooltip dah dan tur - chunglam | hnuai lam | veilam | dik |
selector a ni | hrui | diklo | Selector pek a nih chuan tooltip objects chu target tarlan te hnenah delegate a ni ang. |
nihna | string | thiltih | '' tih a ni. | `title` tag a awm loh chuan default title value a ni |
ti per | hrui | 'hover' a ti a. | tooltip a trigger dan - hover | focus | kuta thawh |
titlai | number | thil | 0 a ni | tooltip (ms) entir leh thup delay - manual trigger type-ah a hman loh Number supply a nih chuan hide/show pahnih ah delay a awm vek a ni Thil awm dan tur chu: |
Performance avang hian Tooltip leh Popover data-apis te hi opt in a ni a, i hman duh chuan selector option kha tarlang mai rawh.
- <a href = "#" rel = "tooltip" title = "tooltip hmasa ber" > ka chungah hover rawh </a>
Element collection pakhatah tooltip handler a attache thin.
Element pakhat tooltip a pholang.
- $ ( '#element' tih chu a ni). tooltip ( 'tihlan rawh' ) .
Element pakhat tooltip a thup thin.
- $ ( '#element' tih chu a ni). hmanrua ( ‘thup’ ) .
Element pakhat tooltip a toggle thin.
- $ ( '#element' tih chu a ni). hmanrua ( 'toggle' ) tih a ni.
Secondary information dahna tur element eng pawhah iPad-a awm ang chi content overlay te te te dah belh rawh.
* Tooltip dah tel a ngai
File chu download rawhPopover chu trigger turin button chungah hover rawh.
Javascript hmangin popovers te chu enable rawh:
- $ ( '#entirna' ). popover ( duhthlan tur ) .
Hming | lampang | hlawhchhamna | hrilhfiahna |
---|---|---|---|
animation tih a ni | boolean a ni | dik | tooltip ah css fade transition hmangin apply rawh |
dahna tur hmun a ni | string|a hnathawh dan | 'dik' | popover dah dan tur - top | hnuai lam | veilam | dik |
selector a ni | hrui | diklo | selector pek a nih chuan tooltip object te chu target tarlan te hnenah delegate a ni ang |
ti per | hrui | 'hover' a ti a. | tooltip a trigger dan - hover | focus | kuta thawh |
nihna | string | thiltih | '' tih a ni. | `title` attribute a awm loh chuan default title value a ni |
lungawi | string | thiltih | '' tih a ni. | `data-content` attribute a awm loh chuan default content value a ni |
titlai | number | thil | 0 a ni | popover (ms) lantir leh thup delay - manual trigger type-ah a hman loh Number supply a nih chuan hide/show pahnih ah delay a awm vek a ni Thil awm dan tur chu: |
Performance avang hian Tooltip leh Popover data-apis te hi opt in a ni a, i hman duh chuan selector option kha tarlang mai rawh.
Element collection pakhat atan popovers a initialize thin.
A elements popover a rawn pholang.
- $ ( '#element' tih chu a ni). popover ( 'tihlan rawh' ) .
A elements popover a thup a.
- $ ( '#element' tih chu a ni). popover ( ‘thup’ ) tih a ni.
A elements popover a tidanglam.
- $ ( '#element' tih chu a ni). popover ( 'toggle' tih hi a dik lo a ni.
Alert plugin hi alert-a close functionality dahna tur class te tak te a ni.
Internet atanga thil lachhawngAlert plugin hian alert message pangngaiah hna a thawk a, message pawh a block bawk.
Hei leh chu thlak la, ti leh rawh. A rilru a buai em em a, a rilru a hah em em bawk a, a rilru a buai em em bawk a, a rilru a hah em em bawk a, a rilru a hah em em bawk a. A rilru a buai em em a, a rilru a hah em em bawk a.
Javascript hmanga alert dismissal theihna tur:
- $ ( ".alert" tih a ni. hriattirna () .
I close button ah khan add mai la data-dismiss="alert"
, automatic in alert close functionality a pe ang.
- <a class = "khar" data-dismiss = "alert" href = "#" > × </a> tih a ni
Alert zawng zawng chu close functionality nen a wrap vek. I alerts te kha khar a nih hunah animate out theih nan, an chungah the .fade
and .in
class apply tawh an neih ngei ngei tur a ni.
Alert a khar thin.
- $ ( ".alert" tih a ni. alert ( 'khar' ) .
Bootstrap-a alert class hian alert functionality-a hook theihna tur thil thleng tlemte a pholang a ni.
Hunbik | Hrilhfiahna |
---|---|
khar | close He event hi instance method kan koh chuan a fire nghal vek a ni. |
khar a ni | He event hi alert khar a nih hunah fire a ni (css transitions zawh hun a nghak ang). |
- $ ( '#ka-alert' ). bind ( 'khar' , function () { 1000 a ni.
- // thil engemaw ti rawh...
- }) tih a ni.
Accordion leh navigation ang chi collapsible component hrang hrangte tan base style leh flexible support dawng rawh.
File chu download rawh* Transitions plugin a tel tur a ni.
Collapse plugin hmangin accordion style widget awlsam tak kan siam a:
Javascript hmangin enable theih a ni:
- $ ( ".a tlakbuak" ). a tlakbuak () .
Hming | lampang | hlawhchhamna | hrilhfiahna |
---|---|---|---|
nu leh pa | selector a ni | diklo | Selector a nih chuan he collapsible item hi a lan hunah parent tarlan hnuaia collapsible element zawng zawng chu khar vek a ni ang. (acordion tih dan phung pangngai ang chiah) |
toggle a ni | boolean a ni | dik | Invocation-ah collapsible element a toggle thin |
Add data-toggle="collapse"
leh a data-target
to element mai mai chuan collapsible element control chu automatic in a assign thei ang. Attribute hian data-target
collapse apply tur css selector a pawm a. collapse
Collapsible element ah hian class chu add ngei ngei tur a ni. Default open i duh chuan additional class kha add la in
.
- <button class = "btn btn-hlauhawm" data-toggle = "a tlakchhiat" data-target = "#demo" >
- simple collapsible a ni
- </button> tih a ni
- <div id = "demo" class = "a tlakbuak" > ... </div>
data-parent="#selector"
. Hei hi action-a hmuh theih nan demo en rawh.
I content chu collapsible element angin a activate thin. A pawm a, optional options a awm object
bawk .
- $ ( '#kaCollapsible' ). a tlakbuak ({
- toggle : dik lo
- }) tih a ni.
Collapsible element chu show emaw hidden emaw ah a toggle thin.
Collapsible element a lantir.
Collapsible element a thup thei.
Bootstrap-a collapse class hian collapse functionality-a hook theihna tur event tlemte a pholang a ni.
Hunbik | Hrilhfiahna |
---|---|
lantir | show He event hi instance method kan koh chuan a fire nghal vek a ni. |
tih a ni | He event hi collapse element pakhat user hmuh theiha siam a nih chuan fire a ni (css transitions zawh hun a nghak ang). |
biru | hide He event hi method koh a nih chuan a fire nghal a ni. |
thuhruk | He event hi user hnen atanga collapse element thup a nih chuan a fire thin (css transitions zawh hun a nghak ang). |
- $ ( '#kaCollapsible' ). on ( 'thup' , hnathawh () { .
- // thil engemaw ti rawh...
- }) tih a ni.
Element hrang hrang hmanga cycle kal theihna tur generic plugin. A hlim hmel hle mai.
File chu download rawhA hnuaia slideshow hi en la.
Javascript hmangin call theih a ni:
- $ ( '.carousel' tih a ni. carousel () a ni.
Hming | lampang | hlawhchhamna | hrilhfiahna |
---|---|---|---|
inkar a ni | a zat | 5000 a ni | Item pakhat automatic-a cycle-a tihkhawtlai hun chhung. Dik lo a nih chuan carousel hian automatic in a cycle dawn lo. |
chawl | hrui | "hover" tih a ni. | Mouseenter-a carousel cycling chu a titawp a, mouseleave-a carousel cycling chu a chhunzawm leh ta a ni. |
Data attribute hi conrol hmasa leh lo awm tur atan hman a ni. A hnuaia markup entirnan hi en la.
- <div id = "ka Carousel" class = "carousel slide" > A chhuahna tur hmun leh a hmanna tur hmun chu a in ang lo hle
- <!-- Carousel thil chi hrang hrang -->
- <div class = "carousel-a chhunga awm" >
- <div class = "item active" > ... </div> tih a ni
- <div class = "item" > ... </div> tih hi a ni
- <div class = "item" > ... </div> tih hi a ni
- </div> tih a ni
- <!-- Carousel nav --> tih a ni
- <a class = "carousel-control a awm tawh" href = "#ka Carousel" data-slide = "a hmaa" > ‹ </a> tih a ni
- <a class = "carousel-control dikna" href = "#ka Carousel" data-slide = "a dawt leh tur" > › </a> tih a ni
- </div> tih a ni
Carousel chu optional options hmangin a initialize a, object
item hrang hrang hmangin cycle a kal tan thin.
- $ ( '.carousel' tih a ni. carousel ({ 1) a ni.
- hun chhung : 2000 a ni
- }) tih a ni.
Carousel thilte chu veilam atanga dinglam thlengin a cycle a.
Carousel chu thil kal tlanga cycle a kal theih loh nan a titawp.
Carousel chu frame pakhatah a cycle (0 based, array ang chi).
Item hmasa lam chu a cycle a.
Item dang lam pan chuan a cycle a.
Bootstrap-a carousel class hian carousel functionality-a hooking-na tur event pahnih a pholang a ni.
Hunbik | Hrilhfiahna |
---|---|
tleng | He event hi slide instance method invoke a nih chuan a fire nghal vek a ni. |
a rawn hrual a | He event hi carousel-in a slide transition a zawh hunah a kah chhuak thin. |
Eng form text input pawha elegant typeaheads rang taka siam theihna tur plugin bulpui, awlsam taka tihzauh theih.
File chu download rawhA hnuaia field-ah hian typeahead result i hmuh theih nan type tan rawh.
Javascript hmangin typeahead chu call rawh:
- $ ( '.type hmasa ber' ). type hmasa ber () .
Hming | lampang | hlawhchhamna | hrilhfiahna |
---|---|---|---|
bultanna | array a ni | [ ] a ni. | Data source chu zawhna zawh tur a ni. |
thil | a zat | 8. A ni | Dropdown-a thil lang tur max zat. |
matcher a ni | thiltih | case insensitive lo tak a ni | Query pakhat chu item nen a inmil em tih hriat theihna tur method. Argument pakhat a pawm a, chu item chu zawhna test tur a ni. Tuna zawhna awm mek chu this.query . true Query a inmil chuan boolean a rawn pe leh ang. |
sorter a ni | thiltih | inmil tak, case sensitive, case insensitive lo |
Autocomplete result sort dan tur hman dan. Argument pakhat a pawm a, items typeahead instance scope a nei bawk. Tuna zawhna awm mek chu this.query . |
highlighter a ni | thiltih | default match zawng zawng a highlight vek | Autocomplete result tarlanna atana hman dan. Argument pakhat a pawm a, item typeahead instance scope a nei bawk. html a rawn kir leh tur a ni. |
Typeahead functionality nei element register turin data attribute te dah belh.
- <input type = "text" data-provide = "type hmahruaitu" >
Input pakhat chu typeahead hmangin a initialize thin.