2023-05-12 10:57:42 +00:00
|
|
|
package navigation
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/vugu/vugu"
|
2023-05-16 16:39:12 +00:00
|
|
|
"github.com/vugu/vugu/js"
|
2023-05-12 10:57:42 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type ButtonFullscreen struct {
|
|
|
|
AttrMap vugu.AttrMap
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *ButtonFullscreen) handleClick(event vugu.DOMEvent) {
|
|
|
|
docElem := js.Global().Get("document").Get("documentElement")
|
|
|
|
|
|
|
|
docElem.Call("requestFullscreen")
|
|
|
|
}
|