{ "$schema": "../TcHmiFramework/Schema/FunctionDescription.Schema.json", "apiVersion": 1, "version": { "full": "14.3.340.0", "major": 14, "minor": 3, "build": 340, "revision": 0 }, "dependencyFiles": [ { "name": "FormatString.js", "type": "JavaScript", "description": "" } ], "function": { "name": "FormatString", "namespace": "TcHmi.Functions.Beckhoff", "displayName": "FormatString", "visible": true, "description": "Format a string. \nPlaceholder syntax in format string: '{' to begin placeholder, optional parameter-index with | as seperator, description and '}' to close the placeholder. \nExample: {0|.1f}", "category": "Formatting", "returnValue": { "type": "tchmi:general#/definitions/String" }, "arguments": [ { "name": "formatString", "displayName": "FormatString", "type": "tchmi:general#/definitions/String", "description": "FormatString with placeholder to be formatted", "required": true, "bindable": true }, { "name": "args", "displayName": "Args", "type": "tchmi:general#/definitions/Any", "description": "Argument to format the placeholder in formatString", "required": true, "bindable": true, "restParameter": true } ] } }