mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Add new example wit deconstructed argument
This commit is contained in:
@@ -36,13 +36,21 @@ class BasicExample extends React.Component {
|
||||
filterBy={(option, props) => (props.text.indexOf(option) !== -1) }
|
||||
placeholder="Choose a state..."
|
||||
/>
|
||||
<Typeahead
|
||||
labelKey="name"
|
||||
multiple={multiple}
|
||||
options={options}
|
||||
maxHeight='300px'
|
||||
filterBy={(option, {text}) => (text.indexOf(option) !== -1) }
|
||||
placeholder="Choose a state..."
|
||||
/>
|
||||
<Typeahead
|
||||
labelKey="name"
|
||||
options={options}
|
||||
placeholder="Choose a state..."
|
||||
renderMenuItemChildren={ (option, props, index) =>
|
||||
<Highlighter key="name" search={props.text}>
|
||||
{option.name}
|
||||
{option.name} {index}
|
||||
</Highlighter>
|
||||
}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user