You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -402,89 +402,29 @@ const oButton = new Button({
402
402
403
403
## 11. XML Event Handling Patterns
404
404
405
-
### Event Handler Addressing
405
+
**Overview**: UI5 XML views support sophisticated event handler binding with parameter passing, special named models ($parameters, $source, $event, $controller), and context control.
406
406
407
-
**Dot Notation (Controller Methods)**
408
-
```xml
409
-
<!-- ✅ Relative to controller -->
410
-
<Buttontext="Save"press=".onSave"/>
411
-
```
412
-
The leading dot means: `attachPress(oController["onSave"], oController)`
413
-
414
-
**core:require Modules**
415
-
```xml
416
-
<Buttoncore:require="{Util: 'my/app/util/Util'}"
417
-
text="Process"
418
-
press="Util.handleProcess"/>
419
-
```
420
-
421
-
**AVOID**: Global function names (legacy, not recommended)
For comprehensive XML event patterns including core:require, JavaScript literals, model property access, "this" context control with .call(), and complex examples, see [references/xml-event-handling-guide.md](references/xml-event-handling-guide.md).
488
428
489
429
## 12. Component Metadata for UI5 Version Detection
- ✅ Use async loading (`data-sap-ui-async="true"`)
639
-
- ✅ Leverage library preloads
640
-
- ✅ Use `ComponentSupport` for initialization
641
-
642
-
**DON'T**:
643
-
- ❌ Use `<script>` with inline code
644
-
- ❌ Use inline event handlers (`onclick="..."`)
645
-
- ❌ Use `javascript:` URLs
646
-
- ❌ Use `document.write()` or `createElement('script')` for inline scripts
647
-
- ❌ Use `eval()`, `new Function()`, `setTimeout(<string>)`
532
+
### Complete Reference
648
533
649
-
### Library-Specific CSP Issues
650
-
651
-
**sap.ui.richtexteditor**
652
-
- Requires `script-src 'unsafe-inline'` for plugins: `linkchecker`, `preview`
653
-
654
-
**sap.ui.core (Hyphenation)**
655
-
- Requires `script-src 'wasm-unsafe-eval'` for WebAssembly
656
-
657
-
**sap.ushell**
658
-
- Requires `script-src 'unsafe-eval'` for App Finder and custom tiles
534
+
For the full directive table, library-specific requirements (sap.ui.richtexteditor, sap.ushell), Report-Only testing workflow, and compliance checklist, see [references/csp-directive-reference.md](references/csp-directive-reference.md).
659
535
660
536
## 14. Modern Test Setup (Test Starter)
661
537
662
-
### Overview
538
+
**Overview**: Test Starter (UI5 >= 1.113.0) provides a modern test orchestration pattern with testsuite.qunit.html/js, individual test files, and optional code coverage.
663
539
664
-
UI5 Test Starter simplifies QUnit/OPA5 test orchestration for UI5 1.136.7+:
For full Test Starter patterns, QUnit 2+ configuration, Istanbul code coverage setup (UI5 >= 1.113.0), and migration from legacy test setup, see [references/test-starter-guide.md](references/test-starter-guide.md).
0 commit comments