Sourceዝርዝር ጉጅለ
ዝርዝር ጉጅለታት ንተኸታታሊ ትሕዝቶ ንምርኣይ ተዓጻጻፍን ሓያልን ባእታ እዩ። ዳርጋ ዝኾነ ኣብ ውሽጢ ዘሎ ትሕዝቶ ንምድጋፍ ኣዐርዮምን ኣስፍሕዎምን።
እቲ ኣዝዩ መሰረታዊ ዝኾነ ዝርዝር ጉጅለ፡ ዝርዝር ነገራትን ግቡእ ክፍልታትን ዘለዎ ዘይተሰርዐ ዝርዝር እዩ። ኣብ ልዕሊኡ በቶም ዝስዕቡ ኣማራጺታት ምህናጽ፣ ወይ ከም ኣድላይነቱ ብናይ ገዛእ ርእስኻ CSS።
ክራስ ጁስቶ ኦዲዮ
ዳፒቡስ ኣሲ ፋሲሊሲስ ኣብ...
ሞርቢ ልዮ ሪሱስ
ፖርታ ኣሲ ኮንሰክተቱር ኣሲ
ቬስቲቡሉም ኣብ ኤሮስ
ቅዳሕ
<ul class= "list-group" >
<li class= "list-group-item" > Cras justo odio</li>
<li class= "list-group-item" > Dapibus ac facilisis in</li>
<li class= "list-group-item" > Morbi leo risus</li>
<li class= "list-group-item" > Porta ac consectetur ac</li>
<li class= "list-group-item" > Vestibulum at eros</li>
</ul>
ነቲ ሕጂ ዘሎ ንጡፍ ምርጫ ንምምልካት .active
ናብ a ወስኽ ።.list-group-item
ክራስ ጁስቶ ኦዲዮ
ዳፒቡስ ኣሲ ፋሲሊሲስ ኣብ...
ሞርቢ ልዮ ሪሱስ
ፖርታ ኣሲ ኮንሰክተቱር ኣሲ
ቬስቲቡሉም ኣብ ኤሮስ
ቅዳሕ
<ul class= "list-group" >
<li class= "list-group-item active" > Cras justo odio</li>
<li class= "list-group-item" > Dapibus ac facilisis in</li>
<li class= "list-group-item" > Morbi leo risus</li>
<li class= "list-group-item" > Porta ac consectetur ac</li>
<li class= "list-group-item" > Vestibulum at eros</li>
</ul>
ተሰናኺሉ ንኽመስል ናብ .disabled
a ወስኹሉ ። ገለ ባእታታት ምስ ውን ንናይ ምጥዋቕ ፍጻሜታቶም ምሉእ ብምሉእ ንምስንኻል ብሕታዊ ጃቫስክሪፕት ከድልዮም ምዃኑ ኣስተውዕል (ንኣብነት፡ መላግቦታት)።.list-group-item
.disabled
ክራስ ጁስቶ ኦዲዮ
ዳፒቡስ ኣሲ ፋሲሊሲስ ኣብ...
ሞርቢ ልዮ ሪሱስ
ፖርታ ኣሲ ኮንሰክተቱር ኣሲ
ቬስቲቡሉም ኣብ ኤሮስ
ቅዳሕ
<ul class= "list-group" >
<li class= "list-group-item disabled" > Cras justo odio</li>
<li class= "list-group-item" > Dapibus ac facilisis in</li>
<li class= "list-group-item" > Morbi leo risus</li>
<li class= "list-group-item" > Porta ac consectetur ac</li>
<li class= "list-group-item" > Vestibulum at eros</li>
</ul>
<a>
s ወይ <button>
s ተጠቐም ብምውሳኽ ተግባራዊ ዝኾኑ .list-group-item-action
ናይ ዝርዝር ጉጅለ ነገራት ምስ ሆቨር፣ disabledን ንጡፋትን ኩነታት ምፍጣር ። ነዞም ስውር-ክፍልታት ንፈላልዮም፡ ብዘይ መስተጋብራዊ ባእታታት (ከም <li>
s ወይ <div>
s) ዝተሰርሑ ናይ ዝርዝር ጉጅለታት ንሓደ ጠውቂ ወይ ምጥዋይ ዓቕሚ ከምዘይህቡ ንምርግጋጽ።
ኣብዚ ነቶም መደበኛ .btn
ክፍልታት ዘይምጥቃምካ ኣረጋግጽ ።
ቅዳሕ
<div class= "list-group" >
<a href= "#" class= "list-group-item list-group-item-action active" >
Cras justo odio
</a>
<a href= "#" class= "list-group-item list-group-item-action" > Dapibus ac facilisis in</a>
<a href= "#" class= "list-group-item list-group-item-action" > Morbi leo risus</a>
<a href= "#" class= "list-group-item list-group-item-action" > Porta ac consectetur ac</a>
<a href= "#" class= "list-group-item list-group-item-action disabled" > Vestibulum at eros</a>
</div>
ብ s ውን ኣብ ክንዲ ክፍሊ <button>
ነቲ ባህሪ ክትጥቀመሉ ትኽእል ኢኻ ። እቲ ዘሕዝን ግን s ነቲ ዝተሰናኸለ ባህሪ ኣይድግፍዎን እዮም።disabled
.disabled
<a>
ክራስ ጁስቶ ኦዲዮ
ዳፒቡስ ኣሲ ፋሲሊሲስ ኣብ...
ሞርቢ ልዮ ሪሱስ
ፖርታ ኣሲ ኮንሰክተቱር ኣሲ
ቬስቲቡሉም ኣብ ኤሮስ
ቅዳሕ
<div class= "list-group" >
<button type= "button" class= "list-group-item list-group-item-action active" >
Cras justo odio
</button>
<button type= "button" class= "list-group-item list-group-item-action" > Dapibus ac facilisis in</button>
<button type= "button" class= "list-group-item list-group-item-action" > Morbi leo risus</button>
<button type= "button" class= "list-group-item list-group-item-action" > Porta ac consectetur ac</button>
<button type= "button" class= "list-group-item list-group-item-action" disabled > Vestibulum at eros</button>
</div>
.list-group-flush
ገለ ዶባት ንምእላይን ክቡባት ኩርናዓትን ዝርዝር ጉጅለ ነገራት ካብ ወሰን ናብ ወሰን ኣብ ወላዲ መትሓዚ (ንኣብነት ካርድታት) ንምቕራብ ምውሳኽ ።
ክራስ ጁስቶ ኦዲዮ
ዳፒቡስ ኣሲ ፋሲሊሲስ ኣብ...
ሞርቢ ልዮ ሪሱስ
ፖርታ ኣሲ ኮንሰክተቱር ኣሲ
ቬስቲቡሉም ኣብ ኤሮስ
ቅዳሕ
<ul class= "list-group list-group-flush" >
<li class= "list-group-item" > Cras justo odio</li>
<li class= "list-group-item" > Dapibus ac facilisis in</li>
<li class= "list-group-item" > Morbi leo risus</li>
<li class= "list-group-item" > Porta ac consectetur ac</li>
<li class= "list-group-item" > Vestibulum at eros</li>
</ul>
ቅዲ ዝርዝር ዘለዎም ነገራት ምስ ኩነታት ዘለዎ ድሕረ ባይታን ሕብርን ንምዝርዛር ዓውደ-ጽሑፋዊ ክፍልታት ተጠቐም።
ዳፒቡስ ኣሲ ፋሲሊሲስ ኣብ...
ቀሊል ቀዳማይ ዝርዝር ጉጅለ ኣቕሓ
ቀሊል ካልኣይ ደረጃ ዝርዝር ጉጅለ ኣቕሓ
ቀሊል ናይ ዓወት ዝርዝር ጉጅለ ኣቕሓ
ቀሊል ናይ ሓደጋ ዝርዝር ጉጅለ ኣቕሓ
ቀሊል ናይ መጠንቀቕታ ዝርዝር ጉጅለ ኣቕሓ
ቀሊል ናይ ሓበሬታ ዝርዝር ጉጅለ ኣቕሓ
ቀሊል ናይ ብርሃን ዝርዝር ጉጅለ ኣቕሓ
ቀሊል ጸሊም ዝርዝር ጉጅለ ኣቕሓ
ቅዳሕ
<ul class= "list-group" >
<li class= "list-group-item" > Dapibus ac facilisis in</li>
<li class= "list-group-item list-group-item-primary" > A simple primary list group item</li>
<li class= "list-group-item list-group-item-secondary" > A simple secondary list group item</li>
<li class= "list-group-item list-group-item-success" > A simple success list group item</li>
<li class= "list-group-item list-group-item-danger" > A simple danger list group item</li>
<li class= "list-group-item list-group-item-warning" > A simple warning list group item</li>
<li class= "list-group-item list-group-item-info" > A simple info list group item</li>
<li class= "list-group-item list-group-item-light" > A simple light list group item</li>
<li class= "list-group-item list-group-item-dark" > A simple dark list group item</li>
</ul>
ዓውደ-ጽሑፋዊ ክፍልታት እውን ምስ .list-group-item-action
. ኣብዚ ኣብቲ ዝሓለፈ ኣብነት ዘይተረኽቡ ቅዲታት ምውሳኽ ኣስተውዕል። መንግስቲ እውን ዝድገፍ እዩ .active
፤ ኣብ ሓደ ዓውደ-ጽሑፍ ዝርዝር ጉጅለ ኣቕሓ ንጡፍ ምርጫ ንምምልካት ተግባራዊ ግበሮ።
ቅዳሕ
<div class= "list-group" >
<a href= "#" class= "list-group-item list-group-item-action" > Dapibus ac facilisis in</a>
<a href= "#" class= "list-group-item list-group-item-action list-group-item-primary" > A simple primary list group item</a>
<a href= "#" class= "list-group-item list-group-item-action list-group-item-secondary" > A simple secondary list group item</a>
<a href= "#" class= "list-group-item list-group-item-action list-group-item-success" > A simple success list group item</a>
<a href= "#" class= "list-group-item list-group-item-action list-group-item-danger" > A simple danger list group item</a>
<a href= "#" class= "list-group-item list-group-item-action list-group-item-warning" > A simple warning list group item</a>
<a href= "#" class= "list-group-item list-group-item-action list-group-item-info" > A simple info list group item</a>
<a href= "#" class= "list-group-item list-group-item-action list-group-item-light" > A simple light list group item</a>
<a href= "#" class= "list-group-item list-group-item-action list-group-item-dark" > A simple dark list group item</a>
</div>
ንሓገዝቲ ቴክኖሎጂታት ትርጉም ምትሕልላፍ
ትርጉም ንምውሳኽ ሕብሪ ምጥቃም ስእላዊ ምልክት ጥራይ እዩ ዝህብ፣ እዚ ድማ ንተጠቀምቲ ሓገዝቲ ቴክኖሎጂታት - ከም ስክሪን ሪደርስ - ኣይመሓላለፍን እዩ። ብሕብሪ ዝተመልከተ ሓበሬታ ወይ ካብቲ ትሕዝቶ ባዕሉ ርኡይ ምዃኑ ኣረጋግጽ (ንኣብነት እቲ ዝርአ ጽሑፍ)፣ ወይ ድማ ብኣማራጺ ኣገባብ ከም ዝሕወስ ኣረጋግጽ፣ ከም ተወሳኺ ጽሑፍ ምስቲ .sr-only
ክፍሊ ዝተሓብአ።
ዘይተነበበ ቁጽሪ፣ ንጥፈትን ካልእን ንምርኣይ ኣብ ዝኾነ ናይ ዝርዝር ጉጅለ ኣቕሓ ባጅ ወስኹ ብሓገዝ ገለ ዩቲሊቲታት .
ክራስ ጁስቶ ኦዲዮ14
ዳፒቡስ ኣሲ ፋሲሊሲስ ኣብ...2.
ሞርቢ ልዮ ሪሱስ1.
ቅዳሕ
<ul class= "list-group" >
<li class= "list-group-item d-flex justify-content-between align-items-center" >
Cras justo odio
<span class= "badge badge-primary badge-pill" > 14</span>
</li>
<li class= "list-group-item d-flex justify-content-between align-items-center" >
Dapibus ac facilisis in
<span class= "badge badge-primary badge-pill" > 2</span>
</li>
<li class= "list-group-item d-flex justify-content-between align-items-center" >
Morbi leo risus
<span class= "badge badge-primary badge-pill" > 1</span>
</li>
</ul>
ዳርጋ ዝኾነ ኤችቲኤምኤል ኣብ ውሽጢ ወስኸሉ፣ ዋላ ንኸምዚ ኣብ ታሕቲ ዘሎ ዝተኣሳሰሩ ናይ ዝርዝር ጉጅለታት፣ ብሓገዝ flexbox utilities .
ቅዳሕ
<div class= "list-group" >
<a href= "#" class= "list-group-item list-group-item-action flex-column align-items-start active" >
<div class= "d-flex w-100 justify-content-between" >
<h5 class= "mb-1" > List group item heading</h5>
<small> 3 days ago</small>
</div>
<p class= "mb-1" > Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small> Donec id elit non mi porta.</small>
</a>
<a href= "#" class= "list-group-item list-group-item-action flex-column align-items-start" >
<div class= "d-flex w-100 justify-content-between" >
<h5 class= "mb-1" > List group item heading</h5>
<small class= "text-muted" > 3 days ago</small>
</div>
<p class= "mb-1" > Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small class= "text-muted" > Donec id elit non mi porta.</small>
</a>
<a href= "#" class= "list-group-item list-group-item-action flex-column align-items-start" >
<div class= "d-flex w-100 justify-content-between" >
<h5 class= "mb-1" > List group item heading</h5>
<small class= "text-muted" > 3 days ago</small>
</div>
<p class= "mb-1" > Donec id elit non mi porta gravida at eget metus. Maecenas sed diam eget risus varius blandit.</p>
<small class= "text-muted" > Donec id elit non mi porta.</small>
</a>
</div>
ነቲ ትብ ጃቫስክሪፕት ፕላግ-ኢን ተጠቐም-ብውልቂ ወይ ብመንገዲ እቲ ዝተጠርነፈ bootstrap.js
ፋይል ኣካትትዎ-ንጉጅለ ዝርዝርና ንምስፋሕ፡ ትብ ዝግበረሎም ሸነኻት ናይ ከባብያዊ ትሕዝቶ ንምፍጣር።
ቬሊት ኣውተ ሞሊት ኢፕሱም ኣድ ዶሎር ኮንሰክተተር ኑላ ኦፊስያ ኩልፓ ኣዲፒሲሲንግ ምውስዋስ ኣካላት ፉጊያት ቴምፖር። Voluptate deserunt ኮፍ ሱንት ኒሲ ኣሊክዋ ፉጊያት ፕሮይደንት ea ut. ሞሊት ቮሉፕቴት ረፕረሄንደሪት ኦካካት ኒሲ ኣድ ዘይ ሚኒም ቴምፖር ሱንት ቮሉፕቴት ኮንሰክተተር ምውስዋስ ኣካላት id ut nulla. Ea et fugiat ኣሊኲፕ ኖስትሩድ ሱንት ኢንሲዲዱንት ኮንሰክተተር ኩልፓ ኣሊኲፕ ኢዩስሞድ ዶሎር። ኣኒም ኣድ ሎረም ኣሊክዋ ኣብ ኩፒዳታት ኒሲ ኤኒም ኤው ኖስትሩድ ዶ ኣሊኲፕ ቬኒየም ሚኒም.
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.
ቅዳሕ
<div class= "row" >
<div class= "col-4" >
<div class= "list-group" id= "list-tab" role= "tablist" >
<a class= "list-group-item list-group-item-action active" id= "list-home-list" data-toggle= "list" href= "#list-home" role= "tab" aria-controls= "home" > Home</a>
<a class= "list-group-item list-group-item-action" id= "list-profile-list" data-toggle= "list" href= "#list-profile" role= "tab" aria-controls= "profile" > Profile</a>
<a class= "list-group-item list-group-item-action" id= "list-messages-list" data-toggle= "list" href= "#list-messages" role= "tab" aria-controls= "messages" > Messages</a>
<a class= "list-group-item list-group-item-action" id= "list-settings-list" data-toggle= "list" href= "#list-settings" role= "tab" aria-controls= "settings" > Settings</a>
</div>
</div>
<div class= "col-8" >
<div class= "tab-content" id= "nav-tabContent" >
<div class= "tab-pane fade show active" id= "list-home" role= "tabpanel" aria-labelledby= "list-home-list" > ...</div>
<div class= "tab-pane fade" id= "list-profile" role= "tabpanel" aria-labelledby= "list-profile-list" > ...</div>
<div class= "tab-pane fade" id= "list-messages" role= "tabpanel" aria-labelledby= "list-messages-list" > ...</div>
<div class= "tab-pane fade" id= "list-settings" role= "tabpanel" aria-labelledby= "list-settings-list" > ...</div>
</div>
</div>
</div>
ዝኾነ ጃቫስክሪፕት ከይጸሓፍካ ናይ ዝርዝር ጉጅለ ምድህሳስ ብቐሊሉ ብምግላጽ data-toggle="list"
ወይ ኣብ ሓደ ባእታ ከተነቓቕሖ ትኽእል ኢኻ። ነዞም ናይ ዳታ ባህርያት ኣብ .list-group-item
.
ቅዳሕ
<!-- List group -->
<div class= "list-group" id= "myList" role= "tablist" >
<a class= "list-group-item list-group-item-action active" data-toggle= "list" href= "#home" role= "tab" > Home</a>
<a class= "list-group-item list-group-item-action" data-toggle= "list" href= "#profile" role= "tab" > Profile</a>
<a class= "list-group-item list-group-item-action" data-toggle= "list" href= "#messages" role= "tab" > Messages</a>
<a class= "list-group-item list-group-item-action" data-toggle= "list" href= "#settings" role= "tab" > Settings</a>
</div>
<!-- Tab panes -->
<div class= "tab-content" >
<div class= "tab-pane active" id= "home" role= "tabpanel" > ...</div>
<div class= "tab-pane" id= "profile" role= "tabpanel" > ...</div>
<div class= "tab-pane" id= "messages" role= "tabpanel" > ...</div>
<div class= "tab-pane" id= "settings" role= "tabpanel" > ...</div>
</div>
ብመንገዲ ጃቫስክሪፕት ኣቢልካ ናይ tabbable ዝርዝር ኣቕሓ ኣንቅሕ (ነፍሲ ወከፍ ናይ ዝርዝር ኣቕሓ ብውልቂ ክነጥፍ ኣለዎ)፤
ቅዳሕ
$ ( '#myList a' ). on ( 'click' , function ( e ) {
e . preventDefault ()
$ ( this ). tab ( 'show' )
})
ንውልቃዊ ዝርዝር ኣቕሓ ብብዙሕ መንገድታት ከተነቓቕሖ ትኽእል ኢኻ፤
ቅዳሕ
$ ( '#myList a[href="#profile"]' ). tab ( 'show' ) // Select tab by name
$ ( '#myList a:first-child' ). tab ( 'show' ) // Select first tab
$ ( '#myList a:last-child' ). tab ( 'show' ) // Select last tab
$ ( '#myList a:nth-child(3)' ). tab ( 'show' ) // Select third tab
.fade
ፓነል ትቦታት ንኽሃስስ ንምግባር፡ ኣብ ነፍሲ ወከፍ ወስኸሉ .tab-pane
። እቲ ቀዳማይ ትብ ፓን እውን .show
ነቲ ናይ መጀመርታ ትሕዝቶ ርኡይ ክገብሮ ኣለዎ።
ቅዳሕ
<div class= "tab-content" >
<div class= "tab-pane fade show active" id= "home" role= "tabpanel" > ...</div>
<div class= "tab-pane fade" id= "profile" role= "tabpanel" > ...</div>
<div class= "tab-pane fade" id= "messages" role= "tabpanel" > ...</div>
<div class= "tab-pane fade" id= "settings" role= "tabpanel" > ...</div>
</div>
ንሓደ ናይ ዝርዝር ኣቕሓ ባእታን ትሕዝቶ መትሓዚን የነቓቕሕ። Tab ኣብ DOM ወይ a data-target
ወይ ንሓደ href
መትሓዚ መስመር ዕላማ ዝገበረ ክህልዎ ኣለዎ።
ቅዳሕ
<div class= "list-group" id= "myList" role= "tablist" >
<a class= "list-group-item list-group-item-action active" data-toggle= "list" href= "#home" role= "tab" > Home</a>
<a class= "list-group-item list-group-item-action" data-toggle= "list" href= "#profile" role= "tab" > Profile</a>
<a class= "list-group-item list-group-item-action" data-toggle= "list" href= "#messages" role= "tab" > Messages</a>
<a class= "list-group-item list-group-item-action" data-toggle= "list" href= "#settings" role= "tab" > Settings</a>
</div>
<div class= "tab-content" >
<div class= "tab-pane active" id= "home" role= "tabpanel" > ...</div>
<div class= "tab-pane" id= "profile" role= "tabpanel" > ...</div>
<div class= "tab-pane" id= "messages" role= "tabpanel" > ...</div>
<div class= "tab-pane" id= "settings" role= "tabpanel" > ...</div>
</div>
<script>
$ ( function () {
$ ( '#myList a:last-child' ). tab ( 'show' )
})
</script>
ነቲ ዝተዋህበ ናይ ዝርዝር ኣቕሓ ይመርጽ እሞ ምስኡ ዝተኣሳሰር ሸነኽ የርኢ። ዝኾነ ካልእ ኣቐዲሙ ዝተመርጸ ናይ ዝርዝር ኣቕሓ ዘይተመርጸ ይኸውን እሞ ምስኡ ዝተኣሳሰር መስኮት ይሕባእ። ቅድሚ እቲ ትብ መስኮት ብጭቡጥ ምርኣይ (ንኣብነት ቅድሚ እቲ shown.bs.tab
ፍጻመ ምፍጣሩ) ናብቲ ደዋሊ ይምለስ።
ቅዳሕ
$ ( '#someListItem' ). tab ( 'show' )
ሓድሽ ትብ ኣብ እተርኢ እዋን፡ እቶም ፍጻመታት በዚ ዝስዕብ ቅደም ተኸተል ይትኩሱ፤
hide.bs.tab
(ኣብቲ ሕጂ ዘሎ ንጡፍ ትብ)
show.bs.tab
(ኣብቲ ክረአ ዘለዎ ትብ)
hidden.bs.tab
(ኣብቲ ዝሓለፈ ንጡፍ ትብ፡ ከምቲ ናይቲ hide.bs.tab
ፍጻመ)
shown.bs.tab
(ኣብቲ ሓድሽ-ንጡፍ ገና ዝተራእየ ትብ፡ ከምቲ ናይቲ show.bs.tab
ፍጻመ)
ድሮ ንጡፍ ዝኾነ ትብ እንተዘይኮይኑ፡ እቲ hide.bs.tab
and hidden.bs.tab
events ኣይክተኮስን እዩ።
ዓይነት ፍጻመ
መግለፂ
show.bs.tab ዝብል ጽሑፍ ኣሎ።
እዚ ፍጻመ ኣብ tab show ይትኩስ፣ ግን ቅድሚ እቲ ሓድሽ tab ምርኣይ። ንጡፍ ትብን ነቲ ዝሓለፈ ንጡፍ ትብን (እንተሃልዩ) ብቕደም ተኸተል ዕላማ event.target
ንምግባርን ተጠቐም ።event.relatedTarget
shown.bs.tab ዝብል ጽሑፍ ኣሎ።
እዚ ፍጻመ ድሕሪ ሓደ ትብ ምርኣይ ኣብ tab show ይትኩስ። ንጡፍ ትብን ነቲ ዝሓለፈ ንጡፍ ትብን (እንተሃልዩ) ብቕደም ተኸተል ዕላማ event.target
ንምግባርን ተጠቐም ።event.relatedTarget
hide.bs.tab ዝብል ጽሑፍ ኣሎ።
እዚ ፍጻመ ሓድሽ ትብ ክረአ ከሎ ይትኩስ (በዚ ኸኣ እቲ ዝሓለፈ ንጡፍ ትብ ክሕባእ ኣለዎ)። ነቲ ሕጂ ዘሎ ንጡፍ ትብን ነቲ ኣብ ቀረባ እዋን ንጡፍ ዝኸውን ሓድሽ ትብን ብቕደም ተኸተል ዕላማ event.target
ንምግባርን ተጠቐም ።event.relatedTarget
ሕቡእ.bs.tab ዝብል ጽሑፍ ኣሎ።
እዚ ፍጻመ ሓድሽ ትብ ምስ ተራእየ ይትኩስ (በዚ ኸኣ እቲ ዝሓለፈ ንጡፍ ትብ ይሕባእ)። ነቲ ዝሓለፈ ንጡፍ ትብን ነቲ ሓድሽ ንጡፍ ትብን ዕላማ ንምግባርን ብቕደም ተኸተል event.target
ተጠቐም ።event.relatedTarget
ቅዳሕ
$ ( 'a[data-toggle="list"]' ). on ( 'shown.bs.tab' , function ( e ) {
e . target // newly activated tab
e . relatedTarget // previous active tab
})