Constructor
# new DropDownForAttributes(props) → {React.ReactElement}
Overview
It is the drop down list used in adding or editing attribute.Parameters:
Name | Type | Description |
---|---|---|
props |
Object | |
defaultValue |
string | This is the default value (already chosen option) from the list. It's used to display mv2 option. |
defaultWidth |
string | This is the width of the field. Usually set to default value (which is 100%). |
displayName |
string | The name displayed on the list before clicking on it (e.g. "Preference type"). |
getSelected |
function | Method responsible for remembering selected option from the list. |
items |
Array | These are the available options to choose from the drop down list (e.g. "none", "cost", "gain"). |
missingVal |
boolean | True if it's missing value field, else false. |
name |
string | The id of the html element, used for identification purposes only. |
React.ReactElement