1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import * as React from 'react';
- export interface FieldProps extends React.HTMLProps<HTMLInputElement> {
- vtype?: string;
- vtypeMsg?: string;
- onEnterKey?: Function;
- }
- export interface FieldRef extends HTMLInputElement {
- isValid: () => Boolean;
- }
- export declare class Field extends React.Component<FieldProps> {
- id: string;
- el: FieldRef | null | undefined;
- label: HTMLLabelElement | null | undefined;
- state: {
- labelClassName: string;
- focusCount: number;
- errmsg: string;
- };
- constructor(props: FieldProps);
- getDefaults(): {
- placeholder: string;
- id: number;
- className: string;
- label: string;
- type: string;
- icon: string;
- };
- getValue(): string | null | undefined;
- setValue(val: string): void;
- isValid(): Boolean;
- onBlur(e: React.FocusEvent<HTMLInputElement>): void;
- onFocus(e: React.FocusEvent<HTMLInputElement>): void;
- validate(blure?: boolean): Boolean;
- makeInValid(): void;
- makeValid(): void;
- componentDidMount(): void;
- onKeyUp(e?: React.KeyboardEvent<HTMLInputElement>): void;
- uuidv4(): any;
- getErrorView(): JSX.Element | undefined;
- render(): JSX.Element;
- }
|