Introduction to modern Combobox control
Combobox has been around in Power Apps ever since Power Apps came into existence. So although it isn't a new control, the modern version has some minor differences (read: additions and some subtractions) when compared to the classic combobox control. This will probably be the shortest modern control blog post as the differences between the classic and modern combobox are very minimal.
New Properties
- Appearance - There are 3 different options:
- 'ComboboxCanvas.Appearance'.FilledDarker (default)
- 'ComboboxCanvas.Appearance'.FilledLighter
- 'ComboboxCanvas.Appearance'.Outline
- TriggerOutput - There are 3 different options:
- 'ComboboxCanvas.TriggerOutput'.Keypress (the search happens after every key stroke of the user typing into the search box)
- 'ComboboxCanvas.TriggerOutput'.FocusOut (the search happens after the user tabs out of the search box)
- 'ComboboxCanvas.TriggerOutput'.Delayed (the search happens after a 0.5 second delay post the user stopping typing)
Some of the properties to style the combobox are gone like ChevronFill. This might seem a bit crippling to some makers, but trust me, losing some of these properties has been a blessing for me. Lack of these properties helps ensure that the controls look neat and clean.
Using modern Combobox control
The one property that some of the modern controls have lost in comparison to their classic versions is the Reset property. I do miss it at times. I used that property to reset controls to their default values using a variable. Now that the Reset property isn't there anymore, you can still reset controls by using the Reset function. To learn more about the Reset function, click here.
Stay tuned for the remaining modern controls!
To read the official documentation of modern controls, click here.
Recent articles
- Checkbox – Everything you want to know about modern control #4
- Button – Everything you want to know about modern control #3
- Badge – Everything you want to know about modern control #2