@appius-fr/apx 2.2.2 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,6 +33,26 @@ The `dialog` module provides utilities to create and manage modal dialogs.
33
33
 
34
34
  Documentation: [`/modules/dialog`](./modules/dialog/dialog.mjs)
35
35
 
36
+ Since 2.4.0, dialog content can be fetched via GET (default) or POST with optional payload and headers.
37
+
38
+ ```javascript
39
+ // Example: POST fetch for dialog content (APX 2.4.0+)
40
+ const myDialog = APX.dialog({
41
+ title: 'Submit and Load',
42
+ contentURI: '/api/dialog/content',
43
+ contentMethod: 'POST',
44
+ contentData: { foo: 'bar' }, // also supports FormData, URLSearchParams, string, Blob
45
+ contentHeaders: { 'X-Request-ID': '123' },
46
+ buttons: [
47
+ { key: 'ok', label: 'OK', closeOnClick: true },
48
+ { key: 'cancel', label: 'Cancel', closeOnClick: true }
49
+ ],
50
+ size: 'medium'
51
+ });
52
+
53
+ myDialog.open();
54
+ ```
55
+
36
56
  ### Utilities
37
57
 
38
58
  - **`loadCss`**: Dynamically load CSS files into your document.