cleanup docs, remove border
This commit is contained in:
parent
d85d5e83dd
commit
f8008d70cb
@ -3,7 +3,7 @@ title: iFrame
|
||||
Description: Add a custom iFrame Widget
|
||||
---
|
||||
|
||||
A basic iFrame widget to show external content, see the [MDN docs](ttps://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) for more details about some of the options.
|
||||
A basic iFrame widget to show external content, see the [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe) for more details about some of the options.
|
||||
|
||||
!!! warning
|
||||
|
||||
@ -15,7 +15,7 @@ A basic iFrame widget to show external content, see the [MDN docs](ttps://develo
|
||||
widget:
|
||||
type: iframe
|
||||
name: myIframe
|
||||
src: "http://example.com"
|
||||
src: http://example.com
|
||||
```
|
||||
|
||||
## Full Example
|
||||
@ -24,13 +24,12 @@ widget:
|
||||
widget:
|
||||
type: iframe
|
||||
name: myIframe
|
||||
src: "http://example.com"
|
||||
classes: "h-60 sm:h-60 md:h-60 lg:h-60 xl:h-60 2xl:h-72" # optional, use tailwind height classes, see https://tailwindcss.com/docs/height
|
||||
referrerPolicy: "same-origin" # optional, no default
|
||||
allowPolicy: "autoplay fullscreen gamepad" # optional, no default
|
||||
src: http://example.com
|
||||
classes: h-60 sm:h-60 md:h-60 lg:h-60 xl:h-60 2xl:h-72 # optional, use tailwind height classes, see https://tailwindcss.com/docs/height
|
||||
referrerPolicy: same-origin # optional, no default
|
||||
allowPolicy: autoplay fullscreen gamepad # optional, no default
|
||||
allowFullscreen: false # optional, default: true
|
||||
loadingStrategy: "eager" # optional, default: "eager"
|
||||
allowScrolling: "no" # optional, default: "yes"
|
||||
border: 0 # optional, default: 1
|
||||
loadingStrategy: eager # optional, default: eager
|
||||
allowScrolling: no # optional, default: yes
|
||||
refreshInterval: 2000 # optional, no default
|
||||
```
|
||||
|
||||
@ -373,7 +373,6 @@ export function cleanServiceGroups(groups) {
|
||||
allowFullscreen,
|
||||
loadingStrategy,
|
||||
allowScrolling,
|
||||
border,
|
||||
} = cleanedService.widget;
|
||||
|
||||
let fieldsList = fields;
|
||||
@ -429,7 +428,6 @@ export function cleanServiceGroups(groups) {
|
||||
if (allowFullscreen) cleanedService.widget.allowFullscreen = allowFullscreen;
|
||||
if (loadingStrategy) cleanedService.widget.loadingStrategy = loadingStrategy;
|
||||
if (allowScrolling) cleanedService.widget.allowScrolling = allowScrolling;
|
||||
if (border) cleanedService.widget.border = border;
|
||||
if (refreshInterval) cleanedService.widget.refreshInterval = refreshInterval;
|
||||
}
|
||||
if (["opnsense", "pfsense"].includes(type)) {
|
||||
|
||||
@ -39,7 +39,6 @@ export default function Component({ service }) {
|
||||
referrerPolicy={widget?.referrerPolicy}
|
||||
loading={widget?.loadingStrategy}
|
||||
scrolling={widget?.allowScrolling}
|
||||
frameBorder={widget?.border}
|
||||
style={{
|
||||
scrollingDisableStyle,
|
||||
}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user