How to use the botframework-schema.AttachmentLayoutTypes.Carousel function in botframework-schema

To help you get started, we’ve selected a few botframework-schema examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / botbuilder-tools / packages / Chatdown / lib / index.js View on Github external
function addAttachmentLayout(currentActivity, rest) {
    if (rest && rest.toLowerCase() == AttachmentLayoutTypes.Carousel)
        currentActivity.attachmentLayout = AttachmentLayoutTypes.Carousel;
    else if (rest && rest.toLowerCase() == AttachmentLayoutTypes.List)
        currentActivity.attachmentLayout = AttachmentLayoutTypes.List;
    else
        console.error(`AttachmentLayout of ${rest[0]} is not List or Carousel`);
}
github microsoft / botbuilder-tools / packages / Chatdown / src / lib / index.ts View on Github external
function addAttachmentLayout(currentActivity: Activity, type: AttachmentLayoutTypes) {
  if (type.toLowerCase() === AttachmentLayoutTypes.Carousel) {
    currentActivity.attachmentLayout = AttachmentLayoutTypes.Carousel;
  } else if (type.toLowerCase() === AttachmentLayoutTypes.List) {
    currentActivity.attachmentLayout = AttachmentLayoutTypes.List;
  } else {
    console.error(`AttachmentLayout of ${ type } is not List or Carousel`);
  }
}
github microsoft / botbuilder-tools / packages / Chatdown / lib / index.js View on Github external
function addAttachmentLayout(currentActivity, rest) {
    if (rest && rest.toLowerCase() == AttachmentLayoutTypes.Carousel)
        currentActivity.attachmentLayout = AttachmentLayoutTypes.Carousel;
    else if (rest && rest.toLowerCase() == AttachmentLayoutTypes.List)
        currentActivity.attachmentLayout = AttachmentLayoutTypes.List;
    else
        console.error(`AttachmentLayout of ${rest[0]} is not List or Carousel`);
}
github microsoft / botbuilder-tools / packages / Chatdown / src / lib / index.ts View on Github external
function addAttachmentLayout(currentActivity: Activity, type: AttachmentLayoutTypes) {
  if (type.toLowerCase() === AttachmentLayoutTypes.Carousel) {
    currentActivity.attachmentLayout = AttachmentLayoutTypes.Carousel;
  } else if (type.toLowerCase() === AttachmentLayoutTypes.List) {
    currentActivity.attachmentLayout = AttachmentLayoutTypes.List;
  } else {
    console.error(`AttachmentLayout of ${ type } is not List or Carousel`);
  }
}