AdaptiveCards icon indicating copy to clipboard operation
AdaptiveCards copied to clipboard

Remove innerHTML usage from dynamic typeahead

Open anna-dingler opened this issue 1 year ago • 0 comments

Related Issue

TODO - removed innerHTML usage

Description

Remove innerHTML usage from dynamic typeahead feature. Now we construct the bold text with individual spans + styling.

Sample Card

{
	"type": "AdaptiveCard",
	"version": "1.6",
	"body": [
		{
			"type": "Input.ChoiceSet",
			"id": "dynamicChoiceSet",
			"label": "Enter the name of your team",
			"placeholder": "AdaptiveCards",
			"isRequired": true,
			"errorMessage": "You must select a valid team",
			"choices": [
				{
					"title": "Office",
					"value": "1"
				},
				{
					"title": "Teams",
					"value": "2"
				},
				{
					"title": "Outlook",
					"value": "3"
				}
			],
			"choices.data": {
				"type": "Data.Query",
				"dataset": "teamScopeInOrg",
				"count": 15,
				"skip": 0
			}
		}
	]
}

How Verified

Verified manually on the AC site.

TODO: add video

anna-dingler avatar Apr 30 '24 23:04 anna-dingler