# Input.Currency
Cardscript
Lets a user enter a currency value.
# Example
{
"type": "AdaptiveCard",
"body": [
{
"id": "currency",
"type": "Input.Currency",
"placeholder": "Input.Currency",
"spacing": "medium"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
# Required properties
# id
Unique identifier for the value. Used to identify collected input when the Submit action is performed.
- Type:
string
# type
Must be "Input.Currency"
.
- Type:
string
- Values:
Input.Currency
# Optional properties
# placeholder
Description of the input desired. Displayed when no text has been input.
- Type:
string
# max
Hint of maximum value (may be ignored by some clients).
- Type:
number
# min
Hint of minimum value (may be ignored by some clients).
- Type:
number
# spacing
Controls the amount of spacing between this element and the preceding element.
- Type:
string
- Values:
none
small
default
medium
large
extraLarge
padding
# separator
When true
, draw a separating line at the top of the element.
- Type:
boolean
# JSON Schema
{
"additionalProperties": true,
"type": "Input.Currency",
"description": "Lets a user enter a currency value.",
"allOf": [
{
"$ref": "#/definitions/CardElement"
}
],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the value. Used to identify collected input when the Submit action is performed."
},
"type": {
"type": "string",
"description": "Must be `\"Input.Currency\"`.",
"enum": [
"Input.Currency"
]
},
"placeholder": {
"type": "string",
"description": "Description of the input desired. Displayed when no text has been input."
},
"max": {
"type": "number",
"description": "Hint of maximum value (may be ignored by some clients)."
},
"min": {
"type": "number",
"description": "Hint of minimum value (may be ignored by some clients)."
}
},
"required": [
"type",
"id"
],
"typeSafe": "input-currency",
"example": "FIXME!",
"propertySummary": [
{
"name": "id",
"type": "string",
"required": "Required",
"text": "Unique identifier for the value. Used to identify collected input when the Submit action is performed."
},
{
"name": "type",
"type": "string",
"required": "Required",
"text": "Must be `\"Input.Currency\"`."
},
{
"name": "placeholder",
"type": "string",
"required": "Optional",
"text": "Description of the input desired. Displayed when no text has been input."
},
{
"name": "max",
"type": "number",
"required": "Optional",
"text": "Hint of maximum value (may be ignored by some clients)."
},
{
"name": "min",
"type": "number",
"required": "Optional",
"text": "Hint of minimum value (may be ignored by some clients)."
}
]
}