You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/apps/design/widgets/widgets-create-a-template.md
+51-2Lines changed: 51 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,7 @@ The third text editor is labeled **Sample Host Data Editor**. Note that this edi
45
45
| host.isUserContextAuthenticated | true or false | When this value is false, the only action that is supported is [Action.OpenUrl](https://adaptivecards.io/explorer/Action.OpenUrl.html). The value of *isUserContextAuthenticated* can be used to adjust widget content appropriately, given the interactivity limitations. |
46
46
47
47
48
-
such as the Widgets Board two properties that indicate the size and theme of your widget. These properties are named *host.widgetSize* and *host.hostTheme*. The supported sizes are "small", "medium", and "large". The supported themes are "light" and "dark". Your widget template can dynamically display different content based on the current value of these properties. To see how your widget responds to changes in size and theme, you can adjust the values for these properties in the editor, or you can also set these values in the **Container size** and **Theme** dropdowns next to the **Select host app** dropdown at the top of the page.
48
+
The **Container size** and **Theme** dropdowns next to the **Select host app** dropdown at the top of the page allow you to set these properties without manually editing the sample host JSON in the editor.
49
49
50
50
## Create a new card
51
51
@@ -169,4 +169,53 @@ The following code listing shows the final version of the JSON payload.
169
169
}
170
170
]
171
171
}
172
-
```
172
+
```
173
+
174
+
## Settings payload example
175
+
176
+
The following code listing shows a simple example of a JSON payload that uses the **host.isSettingsPayload** property to display different
177
+
content when the user has clicked the **Customize widget** button.
0 commit comments