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 @@ + + + + + Function - SetExternalFrame + + + Function - SetExternalFrame +
+
+

User Data:

+

Name:

+

Email:

+

Age:

+
+ +
+
+ +
+ + \ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/001/description.html b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/001/description.html new file mode 100644 index 00000000..d960b4a6 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/001/description.html @@ -0,0 +1 @@ +

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 @@ + + + + + Function - SetExternalFrame with Cloning + + + Function - SetExternalFrame with Cloning +
+
+

Product List:

+
+

{{product.id}} - {{product.name}}: ${{product.price}}

+
+
+ + +
+
+ +
+ + \ No newline at end of file diff --git a/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/002/description.html b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/002/description.html new file mode 100644 index 00000000..74175d05 --- /dev/null +++ b/src/WebDocs/wwwroot/app/functions/SetExternalFrame/samples/002/description.html @@ -0,0 +1 @@ +

Advanced example showing data cloning and bidirectional communication with an iframe

\ No newline at end of file