@mescius/dspdfviewer
Version:
Document Solutions PDF Viewer
41 lines (40 loc) • 1.28 kB
TypeScript
//@ts-ignore
import React, { Component } from 'react';
//@ts-ignore
import { Icon, PlainTextEditorLocalization, PropertyEditorProps } from '@grapecity/core-ui';
export type NullableIntEditorProps = PropertyEditorProps & PlainTextEditorLocalization & {
id?: string;
name?: string;
minValue?: number;
maxValue?: number;
iconDecrease?: Icon;
iconIncrease?: Icon;
step?: number;
displayValue?: string;
placeholder?: string;
validate?: (value: string) => boolean;
};
type NullableIntEditorState = {
value: any;
};
export declare class NullableIntEditor extends Component<NullableIntEditorProps, NullableIntEditorState> {
constructor(props: NullableIntEditorProps, context?: any);
private _outer;
private _currentStep;
static defaultProps: Partial<NullableIntEditorProps>;
componentDidMount(): void;
componentWillUnmount(): void;
private _onWindowMouseUp;
private validateNumber;
private onChange;
private _intTimer;
private _startIncTimer;
getPropValue(defaultValue?: number | ""): number | "";
private _clearIncTimer;
private _onIncDecMouseDown;
private onNumberChange;
//@ts-ignore
//@ts-ignore
render(): React.JSX.Element;
}
export {};