Package jenkins.model.menu.event
Class ConfirmationEvent
java.lang.Object
jenkins.model.menu.event.ConfirmationEvent
- All Implemented Interfaces:
Event
@ExportedBean
@Restricted(org.kohsuke.accmod.restrictions.Beta.class)
public final class ConfirmationEvent
extends Object
implements Event
When clicked, a dialog will pop up for confirmation.
e.g. Delete item.
-
Method Summary
Modifier and TypeMethodDescriptiongetTitle()static ConfirmationEventCreate a confirmation event.static ConfirmationEventCreate a confirmation event.
-
Method Details
-
of
Create a confirmation event.The
titleis rendered as plain text in the dialog, any HTML in it will be escaped.- Parameters:
title- title of the dialog, rendered as plain text.postTo- url that the action should be submitted to, e.g.doDelete.- Since:
- 2.560
-
of
Create a confirmation event.Both
titleanddescriptionare rendered as plain text in the dialog, any HTML in either will be escaped, not interpreted.- Parameters:
title- title of the dialog, rendered as plain text.description- additional contextual information about what is being confirmed, rendered as plain text.postTo- url that the action should be submitted to, e.g.doDelete.- Since:
- 2.560
-
getTitle
-
getDescription
-
getPostTo
-