We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e331624 commit 74f52d6Copy full SHA for 74f52d6
docs/components/example_frame.go
@@ -4,11 +4,13 @@ package components
4
5
import (
6
_ "embed"
7
+ "fmt"
8
+
9
+ jst "syscall/js"
10
11
core "github.com/rfwlab/rfw/v1/core"
12
events "github.com/rfwlab/rfw/v1/events"
13
js "github.com/rfwlab/rfw/v1/js"
- jst "syscall/js"
14
)
15
16
//go:embed templates/example_frame.rtml
@@ -40,6 +42,7 @@ func (e *exampleFrame) mount(hc *core.HTMLComponent) {
40
42
}
41
43
iframe := wrapper.Call("querySelector", "iframe")
44
if uri, ok := hc.Props["uri"].(string); ok {
45
+ uri = fmt.Sprintf(`%s?%s`, uri, hc.GetID())
46
iframe.Set("src", uri)
47
48
codeTab := wrapper.Call("querySelector", "#tab-code")
0 commit comments