{
	"code": "currencyamount",
	"label":"currency amount",
    "iconClass":"fa fa-money",
	"editorDescription":"Editor for currency values in a certain currency.",
	"editor": "tab",
	"groupLabel":"misc",
	"example": {
		"$ref": "example/currencyamount.json"
	},
	"groups": [
		{
			"$ref": "header.json"
		},
		{
			"label": "currency",
			"attributes": [
				{
					"code": "currency",
					"type": "string",
					"required": true,
					"maxLength": 3,
					"pattern": "[A-Z]{3}",
					"description": "The currency code according to ISO4217"
				},
				{
					"code": "type",
					"type": "string",
					"required": true,
					"values": ["number"],
					"visible": false
				},
				{
					"code": "amountFractional",
					"type": "boolean",
					"description": "If true the value is a fractional value. Otherwise the value is provided in the minor currency like cents instead of dollars."
				},
				{
					"code": "min",
					"type": "number"
				},
				{
					"code": "max",
					"type": "number"
				}

			]
		},

		{
			"$ref": "messages.json"
		}
	]
}

