use auto complete for single select

This commit is contained in:
shams mosowi
2019-09-24 14:01:02 +10:00
parent ad1a3924fd
commit 90c9107390

View File

@@ -72,7 +72,7 @@ export const cellFormatter = (fieldType: FieldType, key: string) => {
}
};
const { DropDownEditor } = Editors;
const { DropDownEditor, AutoComplete } = Editors;
export const singleSelectEditor = (options: string[]) => {
const _options = options.map(option => ({
@@ -81,5 +81,5 @@ export const singleSelectEditor = (options: string[]) => {
title: option,
text: option,
}));
return <DropDownEditor options={_options} />;
return <AutoComplete options={_options} />;
};