Closed SHU-red closed 1 year ago
screen
object (as documented https://www.openhab.org/docs/ui/building-pages.html#dynamically-configuring-components-with-expressions) and subtract the padding of the layout block (use the css var as documented here https://v5.framework7.io/docs/block#css-variables and css calc). I just created a simple widget:uid: webview_fullpage
tags: []
props:
parameters:
- description: URL of webpage to embed
label: URL
name: url
required: true
type: TEXT
parameterGroups: []
timestamp: Mar 4, 2023, 6:50:31 PM
component: iframe
config:
src: =props.url
style:
border: none
border-radius: var(--f7-card-border-radius)
height: ='calc(' + screen.viewAreaHeight + 'px - 2*var(--f7-block-padding-vertical))'
width: ='calc(' + screen.viewAreaWidth + 'px - 2*var(--f7-block-padding-horizontal))'
This widget is also available on the marketplace, see https://community.openhab.org/t/fullscreen-webview-widget/144950.
Use this widget on an empty layout page:
config:
label: Fullscreen Webview
blocks:
- component: oh-block
config: {}
slots:
default:
- component: oh-grid-row
config: {}
slots:
default:
- component: oh-grid-col
config: {}
slots:
default:
- component: widget:webview_fullpage
config:
url: https://grafana.localnet
masonry: null
grid: []
canvas: []
This renders to:
Access-Control-Allow-Origin
header, see https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-OriginI will close this issue then. Please let me know if my solution worked for you!
The problem
Problems:
Your suggestion
The suggestions above are describing a feature i would find convenient but especially regarding 2. and 3. i am no expert and i am sure that there may be no solutions available for these things
Your environment
Additional information