Skip to content

Instantly share code, notes, and snippets.

View DeeJayTC's full-sized avatar
👋
theres nothing to see here...move along!

Tim Cadenbach DeeJayTC

👋
theres nothing to see here...move along!
View GitHub Profile
{
"type": "Input.Text",
"placeholder": "Placeholder text",
"label": "Password",
"id": "pwd",
"regex": "(?=(.*[0-9]))(?=.*[\!@#$%^&*()\\[\]{}\-_+=~`|:;"'<>,./?])(?=.*[a-z])(?=(.*[A-Z]))(?=(.*)).{8,}",
"isRequired": true,
"errorMessage": "1 Lower, 1 Upper, 1 Special and min 8 chars required"
}
{
"type": "AdaptiveCard",
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.3",
"body": [
{
"type": "Input.Text",
"placeholder": "Your family name...",
"label": "Family Name",
"id": "familyname"
{
"type": "TextBlock",
"text": "Your Name"
},
{
"type": "Input.Text",
"placeholder": "Placeholder text",
"label": "Your first name...",
"id": "firstname"
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "Your Family Name"
},
{
{
"{<property>}": "Implicitly binds to `$data.<property>`",
"$data": "The current data object",
"$root": "The root data object.",
"$index": "The current index when iterating",
"$host": "Access properties of the host *(not working yet)*"
}
{
"type": "AdaptiveCard",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "auto",
"items": [
var card = new AdaptiveCard();
try
{
card = new AdaptiveCard(new AdaptiveSchemaVersion(1, 0))
{
Body =
{
new AdaptiveTextBlock("My Holiday List - " + userCity),
new AdaptiveTextBlock("Please select city:"),
@DeeJayTC
DeeJayTC / stackoverflow_sample1.json
Created April 19, 2020 08:50
Card in Code Example
var card = new AdaptiveCard();
try
{
card = new AdaptiveCard(new AdaptiveSchemaVersion(1, 0))
{
Body =
{
new AdaptiveTextBlock("My Holiday List - " + userCity),
new AdaptiveTextBlock("Please select city:"),
{
"type": "Input.Text",
"placeholder": "Person full name",
"value": "{$root.displayName}",
"id": "name"
},
{
"type": "AdaptiveCard",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "20px",
"items": [