DropDownAttribute
(
optionListGetterName
, refreshOnRepaint
, allowInvalid
, showPropertyIfListIsEmpty
, showRefreshButton
, refreshMethodName
, showSearch
)
|
Constructor for drop down attribute
Signature
Meta.WitAi.Attributes.DropDownAttribute.DropDownAttribute(string optionListGetterName, bool refreshOnRepaint=false, bool allowInvalid=false, bool showPropertyIfListIsEmpty=true, bool showRefreshButton=true, string refreshMethodName=null, bool showSearch=false) Parameters optionListGetterName: stringrefreshOnRepaint: boolallowInvalid: boolshowPropertyIfListIsEmpty: boolshowRefreshButton: boolrefreshMethodName: stringshowSearch: bool |
AllowInvalid
: bool
[Get] |
Whether or not the dropdown option can be invalid in which case it will be left at index -1. If false, this will always clamp the dropdown to the first option.
Signature
bool Meta.WitAi.Attributes.DropDownAttribute.AllowInvalid |
OptionListGetterName
: string
[Get] |
The method name to be used for obtaining an IEnumerable<string> of options available for the drop down menu.
Signature
string Meta.WitAi.Attributes.DropDownAttribute.OptionListGetterName |
RefreshMethodName
: string
[Get] |
If set, this method will be used when the refresh button is pressed. This may be a longer manual refresh if needed and may or may not be the same as the refresh method used for refreshing on paint.
Signature
string Meta.WitAi.Attributes.DropDownAttribute.RefreshMethodName |
RefreshOnRepaint
: bool
[Get] |
Whether or not the dropdown options getter method should be invoked on every repaint or cached. This should be set to true if the list is expected to change throughout interactions with the GUI.
Signature
bool Meta.WitAi.Attributes.DropDownAttribute.RefreshOnRepaint |
ShowPropertyIfListIsEmpty
: bool
[Get] |
Returns true if the data options for the field list are empty and displays the property value instead.
Signature
bool Meta.WitAi.Attributes.DropDownAttribute.ShowPropertyIfListIsEmpty |
ShowRefreshButton
: bool
[Get] |
If true a refresh button will be shown
Signature
bool Meta.WitAi.Attributes.DropDownAttribute.ShowRefreshButton |
ShowSearch
: bool
[Get] |
If set a search button will appear to allow for text based searching of parameters
Signature
bool Meta.WitAi.Attributes.DropDownAttribute.ShowSearch |