botbuilder-dialogs-adaptive
Version:
Rule system for the Microsoft BotBuilder dialog system.
22 lines • 994 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnCancelDialog = void 0;
const adaptiveEvents_1 = require("../adaptiveEvents");
const onDialogEvent_1 = require("./onDialogEvent");
/**
* Actions triggered when an dialog was canceled.
*/
class OnCancelDialog extends onDialogEvent_1.OnDialogEvent {
/**
* Initializes a new instance of the [OnCancelDialog](xref:botbuilder-dialogs-adaptive.OnCancelDialog) class.
*
* @param actions Optional. A [Dialog](xref:botbuilder-dialogs.Dialog) list containing the actions to add to the plan when the rule constraints are met.
* @param condition Optional. Condition which needs to be met for the actions to be executed.
*/
constructor(actions = [], condition) {
super(adaptiveEvents_1.AdaptiveEvents.cancelDialog, actions, condition);
}
}
exports.OnCancelDialog = OnCancelDialog;
OnCancelDialog.$kind = 'Microsoft.OnCancelDialog';
//# sourceMappingURL=onCancelDialog.js.map