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
Select an item
Fruits
Vegetables
Select items
Fruits
Vegetables
Select an item
Fruits
Vegetables
Orange
Fruits
Vegetables
Style & Class
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
Binding
Two-way binding:
Apple
Fruits
Vegetables
Apple, Banana
Fruits
Vegetables
OnChange:
Select an item
Fruits
Vegetables
Select items
Fruits
Vegetables
OnSelectItem:
Select an item
Fruits
Vegetables
Select items
Fruits
Vegetables
Customization
Select an item
Items
More Items
Items
More Items
Select an item
Items
More Items
Select an item
Items
More Items
Select an item
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
SearchBox
Default search function:
Select an item
Fruits
Vegetables
Select items
Fruits
Vegetables
Custom search function:
Select an item
Fruits
Vegetables
Select items
Fruits
Vegetables
ComboBox
When the Combo parameter is true, you can type in BitDropdown input and search between items.
Fruits
Vegetables
When the Chips parameter is true, shows the selected items like chips in the ComboBox.
Fruits
Vegetables
When the Dynamic parameter is true, you can add a new item in the ComboBox.
Fruits
Vegetables
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
Fruits
Vegetables
Prefix & Suffix
Fruits:Select an item
Fruits
Vegetables
Select an itemkg
Fruits
Vegetables
Fruits:Select an itemkg
Fruits
Vegetables
Fruits:Select an itemkg
Fruits
Vegetables
RTL
لطفا انتخاب کنید
میوه ها
سیزیجات
انتخاب چند گزینه ای
میوه ها
سیزیجات
Drop direction
Select an item
Select an item
Clear button
Apple
Fruits
Vegetables
Apple, Banana
Fruits
Vegetables
Validation
Virtualization
Items:
Select an item
Select items
ItemsProvider:
Select an item
Select items
Implementation
BitDropdown parameters
Name |
Type |
Default value |
Description |
---|---|---|---|
BitDropdown public members
Name |
Type |
Default value |
Description |
---|---|---|---|
BitInputBase parameters
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 |
---|---|---|