Custom Popup with UI5 Web Components (tree with description)
npm inpm run start- First popup: http://localhost:8086/test-resources/pages/index.html.
- Second popup: http://localhost:8086/test-resources/pages/index2.html.
- See
src/CustomPopup.js - http://localhost:8086/test-resources/pages/index.html
- Minimal possible implementation (only
isModal) - No template of its own, completely reuses the Popup template
- Only implements
isModaland has some CSS - All content is in the light DOM
- See
src/AnotherCustomPopup.js - http://localhost:8086/test-resources/pages/index2.html
- Has a template with "close" button in the shadow root
- Implements the
beforeContenthook ofPopup.hbsFor the purpose:{{>include "@ui5/webcomponents/src/Popup.hbs"}} - Provides CSS for the
rootandcontentclasses, seeget classes - Full implementation: all 3 abstract methods of
Popup.js:isModaland the 2 aria-related ones