Dropdown
A dropdown is a list in which the selected item is always visible while other items are visible on demand by clicking a dropdown button. Dropdowns are typically used for forms.
Notes
The BitDropdown is a Multi-API component which can accept the list of Items in 3 different ways: BitDropdownItem class, a custom Generic class, and BitDropdownOption component.Usage
Basic
Displays basic dropdowns demonstrating single and multi-select options, including required and disabled states.
Select an item
Fruits
Vegetables
Select items
Fruits
Vegetables
Select an item
Fruits
Vegetables
Select an item
Fruits
Vegetables
Orange
Fruits
Vegetables
Prefix & Suffix
Use prefixes and suffixes in BitDropdown, including combinations and the disabled state.
Fruits:Select an item
Fruits
Vegetables
Select an itemkg
Fruits
Vegetables
Fruits:Select an itemkg
Fruits
Vegetables
Fruits:Select an itemkg
Fruits
Vegetables
FitWidth
Enables fit-content width for the dropdown that sets the width of the component based on its content size.
Select an item
Fruits
Vegetables
Select items
Fruits
Vegetables
NoBorder
The dropdown can be rendered without any border.
Select an item
Fruits
Vegetables
Select items
Fruits
Vegetables
Responsive
When the IsResponsive parameter is true, on small screens the drop down items will render in a side panel.
Select an item
Fruits
Vegetables
Drop direction
Explores different drop directions for the BitDropdown component, including automatic and explicit directions.
Select an item
Select an item
Clear button
Shows the usage of the clear button in BitDropdown, allowing users to clear selected values in single and multi-select dropdowns.
Apple
Fruits
Vegetables
Value: f-app
Apple, Banana
Fruits
Vegetables
Values: f-app,f-ban
SearchBox
Examples of dropdowns with search functionality, including default and custom search functions.
Select an item
Fruits
Vegetables
Select items
Fruits
Vegetables
Custom search function:
Select an item
Fruits
Vegetables
Select items
Fruits
Vegetables
Validation
Demonstrates how validation can be applied to BitDropdown, including required fields, numeric input, character constraints, email validation, and range validation.
Customization
Shows how to customize dropdowns using templates for header, text, item, placeholder, label, and callout sections.
Select an item
Items
More Items
Select an item
Items
More Items
Select an item
Items
More Items
Select an item
Items
More Items
Select an item
Items
More Items
Select an item
Best in the world
Fruits
Vegetables
Binding
Demonstrates two-way binding and change event handling for dropdowns, showcasing single and multi-select scenarios.
Two-way binding:
Apple
Fruits
Vegetables
Selected Value: f-app
Apple, Banana
Fruits
Vegetables
Selected Values: f-app,f-ban
OnChange:
Select an item
Fruits
Vegetables
Changed Value:
Select items
Fruits
Vegetables
Changed Values:
OnSelectItem:
Select an item
Fruits
Vegetables
Selected Value:
Select items
Fruits
Vegetables
Selected Value:
Virtualization
Demonstrates virtualization in the BitDropdown component for handling large datasets efficiently.
With Items:
Select an item
Select items
With ItemsProvider:
Select an item
Select items
ComboBox
When the Combo parameter is true, you can type in BitDropdown input and search between items.
Fruits
Vegetables
Value:
Fruits
Vegetables
Values:
Chips
When the Chips parameter is true, shows the selected items like chips in the ComboBox.
Fruits
Vegetables
Value:
Fruits
Vegetables
Values:
Dynamic ComboBox
When the Dynamic parameter is true, you can add a new item in the ComboBox.
Fruits
Vegetables
Value:
When the Combo, Chips and Dynamic parameters are true, you can add a new item in the ComboBox (pressing the enter key or touching the add button on the mobile).
Fruits
Vegetables
Value:
Fruits
Vegetables
Values:
Style & Class
Empower customization by overriding default styles and classes, allowing tailored design modifications to suit specific UI requirements.
Component's Style & Class:
Select an item
Fruits
Vegetables
Select an item
Fruits
Vegetables
Item's Style & Class:
Select an item
Fruits
Vegetables
Styles & Classes:
Select an item
Fruits
Vegetables
Select an item
Fruits
Vegetables
RTL
Use BitDropdown in right-to-left (RTL).
لطفا انتخاب کنید
میوه ها
سیزیجات
انتخاب چند گزینه ای
میوه ها
سیزیجات
API
BitDropdown parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitDropdown public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitInputBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitInputBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitComponentBase public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitNameSelectorPair<TItem, TProp> properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitDropdownClassStyles properties
Name |
Type |
Default value |
Description |
---|---|---|---|
BitDropdownItemType enum
Name |
Value |
Description |
---|---|---|
BitVisibility enum
Name |
Value |
Description |
---|---|---|
BitDir enum
Name |
Value |
Description |
---|---|---|
- On this page