Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
actions: {
maxActions: 5,
spacing: Adaptive.Spacing.Default,
buttonSpacing: 5,
showCard: {
actionMode: Adaptive.ShowCardActionMode.Inline,
inlineTopMargin: 20
},
actionsOrientation: Adaptive.Orientation.Horizontal,
actionAlignment: Adaptive.ActionAlignment.Stretch
},
adaptiveCard: {
allowCustomStyle: false
},
imageSet: {
imageSize: Adaptive.Size.Small,
maxImageHeight: 100
},
factSet: {
title: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Bolder,
wrap: true
},
value: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Default,
wrap: true,
addImage(url, container, selectAction) {
container = container || this.container;
const image = new adaptivecards_1.Image();
image.url = url;
image.size = adaptivecards_1.Size.Stretch;
if (selectAction) {
image.selectAction = AdaptiveCardBuilder.addCardAction(selectAction);
}
container.addItem(image);
}
}
actions: {
maxActions: 5,
spacing: Adaptive.Spacing.Default,
buttonSpacing: 10,
showCard: {
actionMode: Adaptive.ShowCardActionMode.Inline,
inlineTopMargin: 16
},
actionsOrientation: Adaptive.Orientation.Horizontal,
actionAlignment: Adaptive.ActionAlignment.Stretch
},
adaptiveCard: {
allowCustomStyle: false
},
imageSet: {
imageSize: Adaptive.Size.Medium,
maxImageHeight: 100
},
factSet: {
title: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Bolder,
wrap: true,
maxWidth: 150,
},
value: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Default,
actions: {
maxActions: 5,
spacing: Adaptive.Spacing.Default,
buttonSpacing: 20,
showCard: {
actionMode: Adaptive.ShowCardActionMode.Inline,
inlineTopMargin: 16
},
actionsOrientation: Adaptive.Orientation.Horizontal,
actionAlignment: Adaptive.ActionAlignment.Left
},
adaptiveCard: {
allowCustomStyle: false
},
imageSet: {
imageSize: Adaptive.Size.Medium,
maxImageHeight: 100
},
factSet: {
title: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Bolder,
wrap: false,
maxWidth: 150,
},
value: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Default,
maxActions: 5,
spacing: Adaptive.Spacing.Default,
buttonSpacing: 20,
showCard: {
actionMode: Adaptive.ShowCardActionMode.Inline,
inlineTopMargin: 16,
style: Adaptive.ContainerStyle.Emphasis
},
actionsOrientation: Adaptive.Orientation.Horizontal,
actionAlignment: Adaptive.ActionAlignment.Left
},
adaptiveCard: {
allowCustomStyle: false
},
imageSet: {
imageSize: Adaptive.Size.Medium,
maxImageHeight: 100
},
factSet: {
title: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Bolder,
wrap: true,
maxWidth: 150
},
value: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Default,
actions: {
maxActions: 5,
spacing: Adaptive.Spacing.Default,
buttonSpacing: 10,
showCard: {
actionMode: Adaptive.ShowCardActionMode.Inline,
inlineTopMargin: 16
},
actionsOrientation: Adaptive.Orientation.Horizontal,
actionAlignment: Adaptive.ActionAlignment.Left
},
adaptiveCard: {
allowCustomStyle: false
},
imageSet: {
imageSize: Adaptive.Size.Medium,
maxImageHeight: 100
},
factSet: {
title: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Bolder,
wrap: true,
maxWidth: 150
},
value: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Default,
actions: {
maxActions: 5,
spacing: Adaptive.Spacing.Default,
buttonSpacing: 10,
showCard: {
actionMode: Adaptive.ShowCardActionMode.Inline,
inlineTopMargin: 16
},
actionsOrientation: Adaptive.Orientation.Horizontal,
actionAlignment: Adaptive.ActionAlignment.Left
},
adaptiveCard: {
allowCustomStyle: false
},
imageSet: {
imageSize: Adaptive.Size.Medium,
maxImageHeight: 100
},
factSet: {
title: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Bolder,
wrap: true,
maxWidth: 150
},
value: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Default,
actions: {
maxActions: 5,
spacing: Adaptive.Spacing.Default,
buttonSpacing: 10,
showCard: {
actionMode: Adaptive.ShowCardActionMode.Popup,
inlineTopMargin: 16
},
actionsOrientation: Adaptive.Orientation.Vertical,
actionAlignment: Adaptive.ActionAlignment.Stretch
},
adaptiveCard: {
allowCustomStyle: false
},
imageSet: {
imageSize: Adaptive.Size.Medium,
maxImageHeight: 100
},
factSet: {
title: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Bolder,
wrap: true,
maxWidth: 150,
},
value: {
color: Adaptive.TextColor.Default,
size: Adaptive.TextSize.Default,
isSubtle: false,
weight: Adaptive.TextWeight.Default,