import * as React from 'react'; import {BaseInput, IBaseInputProps, IBaseInputState} from './base-input'; export interface IIntegerProps extends IBaseInputProps { placeholder?: string; min?: number; max?: number; numberValue: number; } export class IntegerInput extends BaseInput { protected readonly type = 'integer'; constructor(props: IIntegerProps) { super(props); this.state = { value: props.numberValue.toString(), isUsed: false, isChanged: false } as IBaseInputState; } public render() { const { errorClassName, containerClassName, errorContainerClassName, className, fieldMessage, numberValue, ...rest } = this.props; return (
); } }