Bootstrap 4 ကျူတိုရီရယ်

BS4 ပင်မစာမျက်နှာ BS4 ကို စတင်လိုက်ပါ။ BS4 ကွန်တိန်နာများ BS4 Grid အခြေခံ BS4 စာစီစာရိုက် BS4 အရောင်များ BS4 ဇယားများ BS4 ရုပ်ပုံများ BS4 Jumbotron BS4 သတိပေးချက်များ BS4 ခလုတ်များ BS4 ခလုတ်အုပ်စုများ BS4 တံဆိပ်များ BS4 တိုးတက်မှုဘားများ BS4 Spinners BS4 Pagination BS4 စာရင်းအုပ်စုများ BS4 ကတ်များ BS4 ဆွဲချမှုများ BS4 ခေါက်သိမ်းပါ။ BS4 ရေတပ် BS4 Navbar BS4 ပုံစံများ BS4 ထည့်သွင်းမှုများ BS4 ထည့်သွင်းမှုအုပ်စုများ BS4 စိတ်ကြိုက်ပုံစံများ BS4 ချားရဟတ် BS4 Modal BS4 Tooltip BS4 Popover BS4 ဆန္ဒပြုခြင်း။ BS4 Scrollspy BS4 အသုံးအဆောင်များ BS4 Flex BS4 သင်္ကေတများ BS4 မီဒီယာအရာဝတ္ထုများ BS4 စစ်ထုတ်မှုများ

Bootstrap 4 Grid

BS4 Grid စနစ် BS4 သည် အထပ်လိုက်/အလျားလိုက် BS4 Grid XSmall BS4 Grid အသေး BS4 Grid Medium BS4 Grid အကြီး BS4 Grid XLarge BS4 Grid နမူနာများ

Bootstrap 4 အခြား

BS4 အခြေခံ Template BS4 လေ့ကျင့်ခန်းများ BS4 Quiz

Bootstrap 4 Ref

အတန်းအားလုံး JS သတိပေးချက် JS ခလုတ် JS ချားရဟတ် JS ခေါက်သိမ်းပါ။ JS Dropdown JS Modal JS Popover JS Scrollspy JS Tab JS Toasts JS Tooltip


Bootstrap 4 JS ကို ခေါက်သိမ်းပါ။


CSS အတန်းများကို ခေါက်သိမ်းပါ။

Collapsibles အကြောင်း သင်ခန်းစာအတွက်၊ ကျွန်ုပ်တို့၏ Bootstrap ခေါက်သိမ်းမှု ကျူတိုရီရယ် ကို ဖတ်ရှုပါ ။

Class Description Example
.collapse Hides the content
.collapse show Shows the collapsible content by default
.collapsing Added when the transition starts, and removed when it finishes

data-* Attributes မှတဆင့်

ပြိုလဲနိုင်သော ဒြပ်စင်တစ်ခု၏ ထိန်းချုပ်မှုကို အလိုအလျောက် သတ်မှတ်ပေးရန်အတွက် ပေါင်းထည့်ရုံ data-toggle="collapse"နှင့် အစိတ်အပိုင်းတစ်ခုသို့ အစိတ်အပိုင်းတစ်ခုအား ပေါင်းလိုက်ပါ။ data-targetdata-target attribute သည် ပြိုကျမှုကို အသုံးချရန် CSS ရွေးချယ်မှုတစ်ခုကို လက်ခံသည်။ အတန်းပြိုကျခြင်းကို ခေါက်နိုင်သောဒြပ်စင်သို့ ထည့်သွင်းရန် သေချာပါစေ။ ၎င်းကို ပုံသေဖွင့်လိုပါက နောက်ထပ်အတန်း "ရှိုး" ကို ထည့်ပါ။

ဥပမာ

<button class="btn" data-toggle="collapse" data-target="#demo">Collapsible</button>

<div id="demo" class="collapse">
Some text..
</div>

အကြံပြုချက်- ကော်ဒီယံကဲ့သို့ အုပ်စုစီမံခန့်ခွဲမှုကို ပေါင်းစပ်နိုင်သော ထိန်းချုပ်မှုတစ်ခုတွင် ထည့်သွင်းရန်၊ ဒေတာ attribute data-parent="#selector" ကို ထည့်ပါ။


JavaScript မှတဆင့်

ကိုယ်တိုင်ဖွင့်ပါ-

$('.collapse').collapse()

ရွေးချယ်မှုများကို ခေါက်သိမ်းပါ။

ရွေးချယ်စရာများကို data attribute သို့မဟုတ် JavaScript မှတဆင့်ဖြတ်သန်းနိုင်သည်။ ဒေတာရည်ညွှန်းချက်များအတွက်၊ data-parent="" တွင်ကဲ့သို့ ရွေးချယ်စရာအမည်ကို data- တွင် ပေါင်းထည့်ပါ။

Name Type Default Description Try it
parent selector false All collapsible elements under the specified parent will be closed when this collapsible item is shown. (similar to traditional accordion behavior)
toggle boolean true Toggles the collapsible element on invocation

ခေါက်သိမ်းနည်းများ

အောက်ပါဇယားတွင် ရရှိနိုင်သော ပြိုကျမှုနည်းလမ်းများအားလုံးကို စာရင်းပြုစုထားသည်။

Method Description Try it
.collapse(options) Activates the collapsible element with an option. See options above for valid values
.collapse("toggle") Toggles the collapsible element
.collapse("show") Shows the collapsible element
.collapse("hide") Hides the collapsible element
.collapse("dispose") Destroys the collapsible element

အစီအစဉ်များကို ခေါက်သိမ်းပါ။

အောက်ပါဇယားတွင် ရရှိနိုင်သော ပြိုကျသည့်ဖြစ်ရပ်များအားလုံးကို စာရင်းပြုစုထားသည်။

Event Description Try it
show.bs.collapse Occurs when the collapsible element is about to be shown
shown.bs.collapse Occurs when the collapsible element is fully shown (after CSS transitions have completed)
hide.bs.collapse Occurs when the collapsible element is about to be hidden
hidden.bs.collapse Occurs when the collapsible element is fully hidden (after CSS transitions have completed)