gd-sprest-js
Version:
SharePoint 2013/Online js components.
30 lines (29 loc) • 765 B
TypeScript
import { Fabric, IComponentProps } from ".";
/**
* Text Field
*/
export interface ITextField {
/** Returns the fabric component. */
get(): Fabric.ITextField;
/** Returns the textfield value. */
getValue(): string;
/** Sets the error message. */
setErrorMessage(message: string): any;
/** Sets the textfield value. */
setValue(value: string): any;
}
/**
* Text Field Properties
*/
export interface ITextFieldProps extends IComponentProps {
/** The field description */
description?: string;
/** The change event */
onChange?: (value: string) => void;
/** The placeholder text. */
placeholder?: string;
/** The textfield type. */
type?: number;
/** The textfield value. */
value?: string;
}