@gpa-gemstone/react-forms
Version:
React Form modules for gpa webapps
25 lines (24 loc) • 660 B
TypeScript
import { IProps as IInputProps } from './Input';
interface IProps<T> extends Omit<IInputProps<T>, 'Type'> {
Options: string[];
}
export interface IVariable {
Start: number;
End: number;
Variable: string | null;
}
export default function AutoCompleteInput<T>(props: IProps<T>): JSX.Element;
export declare const getSuggestions: (variable: IVariable, text: string, options: string[]) => {
Label: string;
Value: string;
}[];
export declare const getCurrentVariable: (text: string, selection: number) => {
Start: number;
End: number;
Variable: null;
} | {
Start: number;
End: number;
Variable: string;
};
export {};