UNPKG

botbuilder-dialogs-adaptive

Version:

Rule system for the Microsoft BotBuilder dialog system.

28 lines 1.05 kB
"use strict"; /** * @module botbuilder-dialogs-adaptive */ /** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. */ Object.defineProperty(exports, "__esModule", { value: true }); exports.CancelDialog = void 0; const cancelAllDialogsBase_1 = require("./cancelAllDialogsBase"); /** * Command to cancel all of the current [Dialogs](xref:botbuilder-dialogs.Dialog) by emitting an event that must be caught to prevent cancellation from propagating. */ class CancelDialog extends cancelAllDialogsBase_1.CancelAllDialogsBase { /** * Initializes a new instance of the [CancelDialog](xref:botbuilder-dialogs-adaptive.CancelDialog) class. * * @param eventName Optional. Expression for event name. * @param eventValue Optional. Expression for event value. */ constructor(eventName, eventValue) { super(eventName, eventValue, false); } } exports.CancelDialog = CancelDialog; CancelDialog.$kind = 'Microsoft.CancelDialog'; //# sourceMappingURL=cancelDialog.js.map