Custom UI
Custom (Iframe) Extensions
Docs: https://docs.api.kunkun.sh/interfaces/ui.IUiIframe
Built-in Buttons
A custom extension rendered with iframe will take up the entire view port of the window.
The extension provides a few optional built-in buttons to help users navigate and control the extension if the extension does not provide its own navigation and control buttons.
showBackButton
- Show a back button to navigate back to the main page
- Will close window if your extension runs in a separate window
showMoveButton
- Show a move button user can grab to move the app window around
- Designed for scenarios where extension doesn’t have a title bar
- You can choose to make any element in your extension draggable as well
showRefreshButton
- Show a refresh button to reload the extension, could be useful during development
You can hide these buttons if you want to provide your own
hideBackButton
hideMoveButton
hideRefreshButton
Here we use the back button as an example.
Navigation
Window Control
Theme
Get KK’s color theme, if your extension is using KK component libraries, you can set your extension theme to match KK’s theme.