Closed neopostmodern closed 8 years ago
TypeScript Version: 2.0.2
Typings Version: master
Issue: Autocomplete dataSource typings are too narrow. They ignore the existence of dataSourceConfig (which is missing).
dataSource
Code:
const countries = [ { "name": "Afghanistan", "code": "AF" }, { "name": "Åland Islands", "code": "AX" }, { "name": "Albania", "code": "AL" } ]; let autocomplete = <AutoComplete floatingLabelText="Search for a country" filter={AutoComplete.fuzzyFilter} dataSource={countries} dataSourceConfig={{ text: 'name', value: 'code' }} />
See the doc.
Thanks for your awesome feedback!
It should be fixed now, try installing typings install github:mattiamanzati/typings-material-ui and let me know!
typings install github:mattiamanzati/typings-material-ui
Mattia.
Yup, seems to work.
TypeScript Version: 2.0.2
Typings Version: master
Issue: Autocomplete
dataSource
typings are too narrow. They ignore the existence of dataSourceConfig (which is missing).Code:
See the doc.