From 95c7c5079515bf263ef5aedbb630389bcf64470d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 11:23:13 +0000 Subject: [PATCH 1/2] Initial plan From 31791fe93e81a0670cf47fec10dc83071336179e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 4 Jul 2025 11:30:37 +0000 Subject: [PATCH 2/2] Add SetExternalFrame function documentation with complete structure and samples Co-authored-by: silvath <2657156+silvath@users.noreply.github.com> --- .../SetExternalFrame/description.html | 1 + .../SetExternalFrame/parameters.json | 26 +++++++++++++++++++ .../SetExternalFrame/samples/001/content.html | 22 ++++++++++++++++ .../samples/001/description.html | 1 + .../SetExternalFrame/samples/002/content.html | 23 ++++++++++++++++ .../samples/002/description.html | 1 + 6 files changed, 74 insertions(+) create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrame/description.html create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrame/parameters.json create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/001/content.html create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/001/description.html create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/002/content.html create mode 100644 src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/002/description.html diff --git a/src/WebDocs/wwwroot/app/functions/SetExternalFrame/description.html b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/description.html new file mode 100644 index 00000000..566e5f87 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/description.html @@ -0,0 +1 @@ +
SetExternalFrame allows you to communicate with external iframe content by calling a function within the iframe and passing data from the current Drapo application context
\ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/SetExternalFrame/parameters.json b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/parameters.json new file mode 100644 index 00000000..5f56aac5 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/parameters.json @@ -0,0 +1,26 @@ +[ + { + "Name": "FrameID", + "Description": "The ID of the iframe element to communicate with", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "ExternalFunction", + "Description": "The name of the function to call within the iframe", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "DataKey", + "Description": "The data key containing the data to pass to the iframe function", + "Types": [ "text", "mustache" ], + "Optional": false + }, + { + "Name": "IsClone", + "Description": "Whether to clone the data before passing it to the iframe (default: false)", + "Types": [ "boolean", "mustache" ], + "Optional": true + } +] \ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/001/content.html b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/001/content.html new file mode 100644 index 00000000..0973bbf8 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/001/content.html @@ -0,0 +1,22 @@ + + + + +Name:
+Email:
+Age:
+Basic iframe communication example that sends user data to an external iframe
\ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/002/content.html b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/002/content.html new file mode 100644 index 00000000..50ea54e7 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/002/content.html @@ -0,0 +1,23 @@ + + + + +{{product.id}} - {{product.name}}: ${{product.price}}
+Advanced example showing data cloning and bidirectional communication with an iframe
\ No newline at end of file