The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/docs/sources/packages_api/ui/input.md

2.3 KiB

+++

-----------------------------------------------------------------------

Do not edit this file. It is automatically generated by API Documenter.

-----------------------------------------------------------------------

title = "Input" keywords = ["grafana","documentation","sdk","@grafana/ui"] type = "docs" draft = true +++

Input class

Signature

export declare class Input extends PureComponent<Props, State> 

Import

import { Input } from '@grafana/ui';

Properties

Property Modifiers Type Description
defaultProps static {
className: string;
}
isInvalid boolean
populateEventPropsWithStatus (restProps: any, validationEvents: ValidationEvents | undefined) => any
state State
status InputStatus
validatorAsync (validationRules: ValidationRule[]) => (evt: React.ChangeEvent<HTMLInputElement>) => void

Methods

Method Modifiers Description
render()

defaultProps property

Signature

static defaultProps: {
        className: string;
    };

isInvalid property

Signature

get isInvalid(): boolean;

populateEventPropsWithStatus property

Signature

populateEventPropsWithStatus: (restProps: any, validationEvents: ValidationEvents | undefined) => any;

state property

Signature

state: State;

status property

Signature

get status(): InputStatus;

validatorAsync property

Signature

validatorAsync: (validationRules: ValidationRule[]) => (evt: React.ChangeEvent<HTMLInputElement>) => void;

render method

Signature

render(): JSX.Element;

Returns:

JSX.Element