منو کشویی
اجزای کشویی گسترده برای سازماندهی منوها و محتوای شما
منو کشویی پایه
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" id="dropdownMenuButton" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">دکمه کشویی</button>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" href="#!">حذف</a>
<a class="dropdown-item" href="#!">ویرایش</a>
<a class="dropdown-item" href="#!">اشتراک گذاری</a>
</div>
</div>
.dropdown
button#dropdownMenuButton.btn.btn-primary.dropdown-toggle(type='button', data-bs-toggle='dropdown', aria-haspopup='true', aria-expanded='false')
| دکمه کشویی
.dropdown-menu(aria-labelledby='dropdownMenuButton')
a.dropdown-item(href='#!') حذف
a.dropdown-item(href='#!') ویرایش
a.dropdown-item(href='#!') اشتراک گذاری
منوی پیشفرض Bootstrap در قالب SB Admin Pro گسترش یافته و اصلاح شده است. برای دیدن نسخه نمایشی روی دکمه کشویی بالا کلیک کنید.
منو کشویی آیکن دار
<div class="dropdown-menu">
<a class="dropdown-item" href="#!">
<div class="dropdown-item-icon">
<i data-feather="user"></i>
</div>
پروفایل
</a><a class="dropdown-item" href="#!">
<div class="dropdown-item-icon">
<i data-feather="settings"></i>
</div>
تنظیمات
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#!">
<div class="dropdown-item-icon">
<i data-feather="log-out"></i>
</div>
خروج
</a>
</div>
.dropdown-menu
a.dropdown-item(href='#!')
.dropdown-item-icon
i(data-feather='user')
| پروفایل
a.dropdown-item(href='#!')
.dropdown-item-icon
i(data-feather='settings')
| تنظیمات
.dropdown-divider
a.dropdown-item(href='#!')
.dropdown-item-icon
i(data-feather='log-out')
| خروج
از کلاس
.dropdown-item-icon
در کنار
.dropdown-item
استفاده کنید تا آیکون از پیش طراحی شده نمایش داده شود
منو کشویی با انیمیشن
<!-- Default Behavior -->
<div class="dropdown">
<button class="btn btn-primary dropdown-toggle" id="dropdownNoAnimation" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">بدون انیمیشن</button>
<div class="dropdown-menu" aria-labelledby="dropdownNoAnimation">
<a class="dropdown-item" href="#!">حذف</a>
<a class="dropdown-item" href="#!">ویرایش</a>
<a class="dropdown-item" href="#!">اشتراک گذاری</a>
</div>
</div>
<!-- Fade In Animation -->
<div class="dropdown">
<button class="btn btn-secondary dropdown-toggle" id="dropdownFadeIn" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">محو و ظاهر شدن</button>
<div class="dropdown-menu animated--fade-in" aria-labelledby="dropdownFadeIn">
<a class="dropdown-item" href="#!">حذف</a>
<a class="dropdown-item" href="#!">ویرایش</a>
<a class="dropdown-item" href="#!">اشتراک گذاری</a>
</div>
</div>
<!-- Fade In Up Animation -->
<div class="dropdown">
<button class="btn btn-teal dropdown-toggle" id="dropdownFadeInUp" type="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">پایین به بالا</button>
<div class="dropdown-menu animated--fade-in-up" aria-labelledby="dropdownFadeInUp">
<a class="dropdown-item" href="#!">حذف</a>
<a class="dropdown-item" href="#!">ویرایش</a>
<a class="dropdown-item" href="#!">اشتراک گذاری</a>
</div>
</div>
//- Default Behavior
.dropdown
button#dropdownNoAnimation.btn.btn-primary.dropdown-toggle(type='button', data-bs-toggle='dropdown', aria-haspopup='true', aria-expanded='false')
| بدون انیمیشن
.dropdown-menu(aria-labelledby='dropdownNoAnimation')
a.dropdown-item(href='#!') حذف
a.dropdown-item(href='#!') ویرایش
a.dropdown-item(href='#!') اشتراک گذاری
//- Fade In Animation
.dropdown
button#dropdownFadeIn.btn.btn-secondary.dropdown-toggle(type='button', data-bs-toggle='dropdown', aria-haspopup='true', aria-expanded='false')
| محو و ظاهر شدن
.dropdown-menu.animated--fade-in(aria-labelledby='dropdownFadeIn')
a.dropdown-item(href='#!') حذف
a.dropdown-item(href='#!') ویرایش
a.dropdown-item(href='#!') اشتراک گذاری
//- Fade In Up Animation
.dropdown
button#dropdownFadeInUp.btn.btn-teal.dropdown-toggle(type='button', data-bs-toggle='dropdown', aria-haspopup='true', aria-expanded='false')
| پایین به بالا
.dropdown-menu.animated--fade-in-up(aria-labelledby='dropdownFadeInUp')
a.dropdown-item(href='#!') حذف
a.dropdown-item(href='#!') ویرایش
a.dropdown-item(href='#!') اشتراک گذاری
کلاس
.animated--fade-in
و
.animted--fade-in-up
ابزاری است برای انیمیشن دادن به هر منو کشویی در پروژه.
کشویی اعلان سفارشی
<div class="dropdown-notifications">
<div class="dropdown-menu dropdown-menu-right border-0 shadow" aria-labelledby="navbarDropdownAlerts">
<h6 class="dropdown-header dropdown-notifications-header">
<i data-feather="bell"></i>
هدر کشویی
</h6>
<!-- Example Item 1-->
<a class="dropdown-item dropdown-notifications-item" href="#!">
<div class="dropdown-notifications-item-icon bg-warning"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-activity">
<polyline points="22 12 18 12 15 21 9 3 6 12 2 12"></polyline></svg></div>
<div class="dropdown-notifications-item-content">
<div class="dropdown-notifications-item-content-details">جزئیات آیتم کشویی</div>
<div class="dropdown-notifications-item-content-text">این متن آیتم کشویی است. پس از یک عرض ثابت کوتاه می شود.</div>
</div>
</a>
<!-- Example Item 2-->
<a class="dropdown-item dropdown-notifications-item" href="#!">
<div class="dropdown-notifications-item-icon bg-info">
<i data-feather="bar-chart"></i>
</div>
<div class="dropdown-notifications-item-content">
<div class="dropdown-notifications-item-content-details">جزئیات آیتم کشویی</div>
<div class="dropdown-notifications-item-content-text">این متن آیتم کشویی است. پس از یک عرض ثابت کوتاه می شود.</div>
</div>
</a>
<!-- Example Item 3-->
<a class="dropdown-item dropdown-notifications-item" href="#!">
<div class="dropdown-notifications-item-icon bg-danger">
<i class="fas fa-exclamation-triangle"></i>
</div>
<div class="dropdown-notifications-item-content">
<div class="dropdown-notifications-item-content-details">جزئیات آیتم کشویی</div>
<div class="dropdown-notifications-item-content-text">این متن آیتم کشویی است. پس از یک عرض ثابت کوتاه می شود.</div>
</div>
</a>
<!-- Example Item 4-->
<a class="dropdown-item dropdown-notifications-item" href="#!">
<div class="dropdown-notifications-item-icon bg-success">
<i data-feather="user-plus"></i>
</div>
<div class="dropdown-notifications-item-content">
<div class="dropdown-notifications-item-content-details">جزئیات آیتم کشویی</div>
<div class="dropdown-notifications-item-content-text">این متن آیتم کشویی است. پس از یک عرض ثابت کوتاه می شود.</div>
</div>
</a>
<a class="dropdown-item dropdown-notifications-footer" href="#!">فوتری کشویی</a>
</div>
</div>
.dropdown-notifications
.dropdown-menu.dropdown-menu-end.border-0.shadow(aria-labelledby='navbarDropdownAlerts')
h6.dropdown-header.dropdown-notifications-header
i.me-2(data-feather='bell')
| هدر کشویی
// Example Item 1
a.dropdown-item.dropdown-notifications-item(href='#!')
.dropdown-notifications-item-icon.bg-warning
i(data-feather='activity')
.dropdown-notifications-item-content
.dropdown-notifications-item-content-details
| جزئیات آیتم کشویی
.dropdown-notifications-item-content-text
| این متن آیتم کشویی است. پس از یک عرض ثابت کوتاه می شود.
// Example Item 2
a.dropdown-item.dropdown-notifications-item(href='#!')
.dropdown-notifications-item-icon.bg-info
i(data-feather='bar-chart')
.dropdown-notifications-item-content
.dropdown-notifications-item-content-details
| جزئیات آیتم کشویی
.dropdown-notifications-item-content-text
| این متن آیتم کشویی است. پس از یک عرض ثابت کوتاه می شود.
// Example Item 3
a.dropdown-item.dropdown-notifications-item(href='#!')
.dropdown-notifications-item-icon.bg-danger
i.fas.fa-exclamation-triangle
.dropdown-notifications-item-content
.dropdown-notifications-item-content-details
| جزئیات آیتم کشویی
.dropdown-notifications-item-content-text
| این متن آیتم کشویی است. پس از یک عرض ثابت کوتاه می شود.
// Example Item 4
a.dropdown-item.dropdown-notifications-item(href='#!')
div.dropdown-notifications-item-icon.bg-success
i(data-feather='user-plus')
div.dropdown-notifications-item-content
div.dropdown-notifications-item-content-details
| جزئیات آیتم کشویی
div.dropdown-notifications-item-content-text
| این متن آیتم کشویی است. پس از یک عرض ثابت کوتاه می شود.
a.dropdown-item.dropdown-notifications-footer(href='#!') فوتر کشویی
کشویی اعلان ها یک جزء سفارشی است که در SB Admin Pro تعبیه شده است. وقتی روی آیکون های هشدارها و مرکز پیام کلیک میکنید، میتوانید دو نمونه از مؤلفه در حال کار را در topnav مشاهده کنید.
حداکثر ارتفاع بر روی خود کشویی تنظیم شده است، که در صورتی که محتوای داخل کرکره از ارتفاع معینی بیشتر شود، نوار پیمایش سفارشی را فعال می کند.
این کامپوننت برای فهرستهای کشویی که حاوی مقادیر زیادی از محتوایی است که میخواهید در قالب یکپارچه نمایش داده شود، مناسب است. آیکون ها با تصاویر قابل تعویض هستند یا می توانید آنها را حذف کنید.