How to use the adaptivecards.TextBlock function in adaptivecards

To help you get started, weā€™ve selected a few adaptivecards 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 / BotFramework-WebChat / packages / bundle / src / adaptiveCards / Attachment / AdaptiveCardBuilder.ts View on Github external
addTextBlock(text: string, template: Partial, container: Container = this.container) {
    if (typeof text !== 'undefined') {
      const textblock = new TextBlock();

      // tslint:disable-next-line:forin
      for (const prop in template) {
        textblock[prop] = template[prop];
      }

      textblock.text = text;

      container.addItem(textblock);
    }
  }
github microsoft / BotFramework-Emulator / packages / custom-botframework-webchat / built / CardBuilder.js View on Github external
addTextBlock(text, template, container) {
        container = container || this.container;
        if (typeof text !== 'undefined') {
            const textblock = new adaptivecards_1.TextBlock();
            for (let prop in template) {
                textblock[prop] = template[prop];
            }
            textblock.text = text;
            container.addItem(textblock);
        }
    }
    addButtons(cardActions, includesOAuthButtons) {
github microsoft / BotFramework-Emulator / packages / custom-botframework-webchat / src / CardBuilder.tsx View on Github external
addTextBlock(text: string, template: Partial, container?: Container) {
        container = container || this.container;
        if (typeof text !== 'undefined') {
            const textblock = new TextBlock();
            for (let prop in template) {
                (textblock as any)[prop] = (template as any)[prop];
            }
            textblock.text = text;
            container.addItem(textblock);
        }
    }