Created
October 20, 2025 07:02
-
-
Save nnaydenow/1e1d642e50845dce97bb92511e217060 to your computer and use it in GitHub Desktop.
ui5 web components playground example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- playground-fold --> | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <style> | |
| *:not(:defined) { | |
| display: none; | |
| } | |
| html { | |
| forced-color-adjust: none; | |
| } | |
| </style> | |
| <style> | |
| *:not(:defined) { | |
| display: none; | |
| } | |
| html { | |
| forced-color-adjust: none; | |
| } | |
| </style> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Sample</title> | |
| </head> | |
| <body style="background-color: var(--sapBackgroundColor)"> | |
| <!-- playground-fold-end --> | |
| <ui5-segmented-button accessible-name="Font style"> | |
| <ui5-segmented-button-item tooltip="Bold" icon="bold-text" selected></ui5-segmented-button-item> | |
| <ui5-segmented-button-item tooltip="Underline" icon="underline-text"></ui5-segmented-button-item> | |
| <ui5-segmented-button-item tooltip="Italic" icon="italic-text"></ui5-segmented-button-item> | |
| </ui5-segmented-button> | |
| <br><br> | |
| <ui5-segmented-button accessible-name="Map style"> | |
| <ui5-segmented-button-item tooltip="1111">Map</ui5-segmented-button-item> | |
| <ui5-segmented-button-item tooltip="2222" selected>Satellite</ui5-segmented-button-item> | |
| <ui5-segmented-button-item tooltip="3333">Terrain</ui5-segmented-button-item> | |
| </ui5-segmented-button> | |
| <!-- playground-fold --> | |
| <script type="module" src="main.js"></script> | |
| </body> | |
| </html> | |
| <!-- playground-fold-end --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* playground-hide */ | |
| import "./playground-support.js"; | |
| /* playground-hide-end */ | |
| import "@ui5/webcomponents/dist/SegmentedButton.js"; | |
| import "@ui5/webcomponents/dist/SegmentedButtonItem.js"; | |
| import "@ui5/webcomponents-icons/dist/bold-text.js"; | |
| import "@ui5/webcomponents-icons/dist/underline-text.js"; | |
| import "@ui5/webcomponents-icons/dist/italic-text.js"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment