I want a function to be called when the user selects an option from the Dropdown Search Selection used by @fluentui/react-northstar.
import React from 'react'
import { Dropdown } from '@fluentui/react-northstar';
class someComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
inputItems: [
'Robert Tolbert',
'Wanda Howard',
'Tim Deboer',
'Amanda Brady',
'Ashley McCarthy',
'Cameron Evans',
'Carlos Slattery',
'Carole Poland',
'Robin Counts',
]
}
}
onBlurHandler(){
//Handles onBlur of Dropdown
}
**FUNCTION TO BE CALLED WHEN USER SELECTS THE OPTIONS FROM INPUTITEMS**
optionSelectedHandler() {
}
render() {
return (
<div>
<Dropdown
search
items={this.state.inputItems}
onBlur={this.onBlurHandler}
placeholder="Start Typing"
/>
</div>
);
}
}
export default someComponent;
Can anyone provide the attribute which is to be used for handling the optionSelectedHandler
function?