@gpa-gemstone/react-forms
Version:
React Form modules for gpa webapps
28 lines (27 loc) • 880 B
TypeScript
import { Gemstone } from '@gpa-gemstone/application-typings';
interface IProps<T> extends Omit<Gemstone.TSX.Interfaces.IBaseFormProps<T>, 'Setter'> {
/**
* Options for the select dropdown
* @type {{ Value: string; Label: string }[]}
*/
Options: Gemstone.TSX.Interfaces.ILabelValue<string | number>[];
/**
* Flag to include an empty option in the select dropdown
* @type {boolean}
* @optional
*/
EmptyOption?: boolean;
/**
* Label to display for the empty option
* @type {string}
* @optional
*/
EmptyLabel?: string;
/**
* Setter function to update the Record
* @param record - Updated Record
*/
Setter: (record: T, selectedOption: Gemstone.TSX.Interfaces.ILabelValue<string | number>) => void;
}
export default function Select<T>(props: IProps<T>): JSX.Element;
export {};