UNPKG

@aappddeevv/dynamics-client-ui

Version:

## What is it? A library to help you create great dynamics applications.

27 lines (26 loc) 893 B
/// <reference types="react" /> import * as React from 'react'; export interface RestorableTextFieldProps { className?: string; label: string; initialValue: string; /** null => valid, otherwise error message */ validate?: (value: string) => string | null; onChanged?: (value: string) => void; } export interface RestorableTextFieldState { value: string; } export declare class RestorableTextField extends React.Component<RestorableTextFieldProps, RestorableTextFieldState> { constructor(props: RestorableTextFieldProps); render(): JSX.Element; private validate; private onChanged; private restore; } /** Validate number with `isNan`. */ export declare class NumberTextField extends React.Component<RestorableTextFieldProps, any> { constructor(props: RestorableTextFieldProps); render(): JSX.Element; private validateNumber(value); }