Menu
Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Enterprise
Open source
TagsInput class
Signature
typescript
export declare class TagsInput extends PureComponent<Props, State>
Import
typescript
import { TagsInput } from '@grafana/ui';
Constructors
Constructor | Modifiers | Description |
---|---|---|
constructor(props) | Constructs a new instance of the TagsInput class |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
onAdd | (event: React.MouseEvent<Element, MouseEvent>) => void | ||
onChange | () => void | ||
onKeyboardAdd | (event: React.KeyboardEvent<Element>) => void | ||
onNameChange | (event: React.ChangeEvent<HTMLInputElement>) => void | ||
onRemove | (tagToRemove: string) => void | ||
setNewTags | () => void |
Methods
Method | Modifiers | Description |
---|---|---|
render() |
constructor(props)
Constructs a new instance of the TagsInput
class
Signature
typescript
constructor(props: Props);
Parameters
Parameter | Type | Description |
---|---|---|
props | Props |
onAdd property
Signature
typescript
onAdd: (event: React.MouseEvent<Element, MouseEvent>) => void;
onChange property
Signature
typescript
onChange: () => void;
onKeyboardAdd property
Signature
typescript
onKeyboardAdd: (event: React.KeyboardEvent<Element>) => void;
onNameChange property
Signature
typescript
onNameChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
onRemove property
Signature
typescript
onRemove: (tagToRemove: string) => void;
setNewTags property
Signature
typescript
setNewTags: () => void;
render method
Signature
typescript
render(): JSX.Element;
Returns:
JSX.Element
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:
Video
Getting started with the Grafana LGTM Stack
In this webinar, we’ll demo how to get started using the LGTM Stack: Loki for logs, Grafana for visualization, Tempo for traces, and Mimir for metrics.
Video
Getting started with Grafana dashboard design
In this webinar, you'll learn how to design stylish and easily accessible Grafana dashboards that tell a story.
Video
Building advanced Grafana dashboards
In this webinar, we’ll demo how to build and format Grafana dashboards.