Jan 27 2022 08:35 PM
hello, I have a bot in teams that sends an action card with options on buttons, the problem is that the texts of the buttons are cut off:
hello, I have a bot in teams that sends an action card with options on buttons, the problem is that their texts are cut off as seen in the images
I do not use adaptive card because they limit me to only 6 buttons and I require more, on the other hand it does not have the functionality to navigate the options to the sides
I need the text to be complete in several lines or have a tooltip that shows the complete text
The code I use to send the action card is:
var herocard = new HeroCard();
herocard.Title = answers[0].Answer;
List<CardAction> buttons = new List<CardAction>();
var sortedPrompts = prompts.OrderBy(r => r.DisplayText);
foreach (var items in sortedPrompts)
{
buttons.Add(new CardAction()
{
Type = ActionTypes.MessageBack,
Title = items.DisplayText,
DisplayText = items.DisplayText,
Text = items.DisplayText,
Value = items.DisplayText,
});
}
herocard.Buttons = buttons;
var response = stepContext.Context.Activity.CreateReply();
response.Attachments = new List<Microsoft.Bot.Schema.Attachment>() { herocard.ToAttachment() };
await stepContext.Context.SendActivityAsync(response);
I welcome your comments and help.
Mar 01 2022 08:26 PM