katoikia-app/web-ui/web-react/node_modules/primereact/inputnumber/inputnumber.d.ts

75 lines
2.0 KiB
TypeScript
Raw Normal View History

2022-07-06 04:15:11 +00:00
import * as React from 'react';
import TooltipOptions from '../tooltip/tooltipoptions';
interface InputNumberValueChangeTargetOptions {
name: string;
id: string;
value: number | null;
}
interface InputNumberValueChangeParams {
originalEvent: React.SyntheticEvent;
value: number | null;
stopPropagation(): void;
preventDefault(): void;
target: InputNumberValueChangeTargetOptions;
}
interface InputNumberChangeParams {
originalEvent: React.SyntheticEvent;
value: number | null;
}
export interface InputNumberProps {
value?: number | null;
inputRef?: React.Ref<HTMLInputElement>;
format?: boolean;
showButtons?: boolean;
buttonLayout?: string;
incrementButtonClassName?: string;
decrementButtonClassName?: string;
incrementButtonIcon?: string;
decrementButtonIcon?: string;
locale?: string;
localeMatcher?: string;
mode?: string;
suffix?: string;
prefix?: string;
currency?: string;
currencyDisplay?: string;
useGrouping?: boolean;
minFractionDigits?: number;
maxFractionDigits?: number;
id?: string;
name?: string;
type?: string;
allowEmpty?: boolean;
step?: number;
min?: number;
max?: number;
disabled?: boolean;
required?: boolean;
tabIndex?: number;
pattern?: string;
inputMode?: string;
placeholder?: string;
readOnly?: boolean;
size?: number;
style?: object;
className?: string;
inputId?: string;
autoFocus?: boolean;
inputStyle?: object;
inputClassName?: string;
tooltip?: string;
tooltipOptions?: TooltipOptions;
ariaLabelledBy?: string;
onValueChange?(e: InputNumberValueChangeParams): void;
onChange?(e: InputNumberChangeParams): void;
onFocus?(event: React.FocusEvent<HTMLInputElement>): void;
onBlur?(event: React.FocusEvent<HTMLInputElement>): void;
onKeyDown?(event: React.KeyboardEvent<HTMLInputElement>): void;
}
export declare class InputNumber extends React.Component<InputNumberProps, any> { }