Interface IComboBoxComponent
The combo box component allows having the entity behave like a drop-down for selecting an item from a list.
Inherited Members
Namespace: AGS.API
Assembly: AGS.API.dll
Syntax
public interface IComboBoxComponent : IComponent, IDisposable, INotifyPropertyChanged
Properties
| Improve this Doc View SourceDropDownButton
Gets or sets the drop down button, which shows the drop down list when clicked.
Declaration
IButton DropDownButton { get; set; }
Property Value
Type | Description |
---|---|
IButton | The drop down button. |
DropDownPanel
Sets the drop down panel which hosts the selection item.
Declaration
IListbox DropDownPanel { get; set; }
Property Value
Type | Description |
---|---|
IListbox |
DropDownPanelList
Gets the drop down panel list of items.
Declaration
IListboxComponent DropDownPanelList { get; }
Property Value
Type | Description |
---|---|
IListboxComponent | The drop down panel. |
MarkComboboxSuggestion
Allows to override the behavior when marking suggestions on the dropdown as the user types text in the textbox. By default, the suggestion is given an orange color, but if you want a different behavior, set this callback which gets 2 parameters: the old button which is no longer the current marked suggestion (passed to clear the current mark) and the new button which is the new suggestion in the dropdown (passed to "draw" the mark on the button).
Declaration
Action<IButton, IButton> MarkComboboxSuggestion { get; set; }
Property Value
Type | Description |
---|---|
System.Action<IButton, IButton> | The mark suggestion. |
SuggestMode
Gets or sets the suggestion mode (how does the combobox behave when the user types text directly in the textbox instead of using the dropdown button).
Declaration
ComboSuggest SuggestMode { get; set; }
Property Value
Type | Description |
---|---|
ComboSuggest | The suggestion mode. |
TextBox
Gets or sets the text box which shows the display text of the selected item.
Declaration
ITextBox TextBox { get; set; }
Property Value
Type | Description |
---|---|
ITextBox | The text box. |