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
ConfirmModalProps interface
Signature
typescript
export interface ConfirmModalProps
Import
typescript
import { ConfirmModalProps } from '@grafana/ui';
Properties
Property | Type | Description |
---|---|---|
alternativeText | string | Text for alternative button |
body | React.ReactNode | Modal content |
confirmationText | string | Text user needs to fill in before confirming |
confirmText | string | Text for confirm button |
description | React.ReactNode | Modal description |
dismissText | string | Text for dismiss button |
icon | IconName | Icon for the modal header |
isOpen | boolean | Toggle modal’s open/closed state |
title | string | Title for the modal header |
Methods
Method | Description |
---|---|
onAlternative() | Alternative action callback |
onConfirm() | Confirm action callback |
onDismiss() | Dismiss action callback |
alternativeText property
Text for alternative button
Signature
typescript
alternativeText?: string;
body property
Modal content
Signature
typescript
body: React.ReactNode;
confirmationText property
Text user needs to fill in before confirming
Signature
typescript
confirmationText?: string;
confirmText property
Text for confirm button
Signature
typescript
confirmText: string;
description property
Modal description
Signature
typescript
description?: React.ReactNode;
dismissText property
Text for dismiss button
Signature
typescript
dismissText?: string;
icon property
Icon for the modal header
Signature
typescript
icon?: IconName;
isOpen property
Toggle modal’s open/closed state
Signature
typescript
isOpen: boolean;
title property
Title for the modal header
Signature
typescript
title: string;
onAlternative method
Alternative action callback
Signature
typescript
onAlternative?(): void;
Returns:
void
onConfirm method
Confirm action callback
Signature
typescript
onConfirm(): void;
Returns:
void
onDismiss method
Dismiss action callback
Signature
typescript
onDismiss(): void;
Returns:
void
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:

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.

Getting started with Grafana dashboard design (EMEA Timezone)
In this webinar, you'll learn how to design stylish and easily accessible Grafana dashboards that tell a story.

Unify your data with Grafana plugins: Datadog, Splunk, MongoDB, and more
In this webinar, learn how to leverage Grafana's plugin ecosystem for access to 80+ data sources, including plugins for Datadog, Splunk, MongoDB, and more.