# Action.OpenUrl
Cardscript
When invoked, show the given url either by launching it in an external web browser or showing in-situ with embedded web browser.
# Example
{
"type": "AdaptiveCard",
"body": [],
"actions": [
{
"type": "Action.OpenUrl",
"title": "Action.OpenUrl",
"url": "https://github.com/wmfs/cardscript"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
# Required properties
# type
Must be "Action.OpenUrl"
.
- Type:
string
# url
The URL to open.
- Type:
string
- Format:
uri
(opens new window)
# Optional properties
# title
Label for button or link that represents this action.
- Type:
string
# iconUrl
Optional icon to be shown on the action in conjunction with the title.
- Type:
string
- Format:
uri
(opens new window)
# JSON Schema
{
"additionalProperties": true,
"description": "When invoked, show the given url either by launching it in an external web browser or showing in-situ with embedded web browser.",
"properties": {
"type": {
"type": "string",
"description": "Must be `\"Action.OpenUrl\"`."
},
"title": {
"type": "string",
"description": "Label for button or link that represents this action."
},
"iconUrl": {
"type": "string",
"format": "uri",
"description": "Optional icon to be shown on the action in conjunction with the title",
"version": "1.1"
},
"url": {
"type": "string",
"format": "uri",
"description": "The URL to open."
}
},
"required": [
"type",
"url"
],
"type": "Action.OpenUrl",
"typeSafe": "action-open-url",
"example": "FIXME!",
"propertySummary": [
{
"name": "type",
"type": "string",
"required": "Required",
"text": "Must be `\"Action.OpenUrl\"`."
},
{
"name": "title",
"type": "string",
"required": "Optional",
"text": "Label for button or link that represents this action."
},
{
"name": "iconUrl",
"type": "string",
"required": "Optional",
"text": "Optional icon to be shown on the action in conjunction with the title"
},
{
"name": "url",
"type": "string",
"required": "Required",
"text": "The URL to open."
}
]
}