Custom Popup with UI5 Web Components (tree with description)
npm i
npm 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
isModal
and 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
beforeContent
hook ofPopup.hbs
For the purpose:{{>include "@ui5/webcomponents/src/Popup.hbs"}}
- Provides CSS for the
root
andcontent
classes, seeget classes
- Full implementation: all 3 abstract methods of
Popup.js
:isModal
and the 2 aria-related ones