You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
290 B
Go
18 lines
290 B
Go
1 year ago
|
package navigation
|
||
|
|
||
|
import (
|
||
|
"syscall/js"
|
||
|
|
||
|
"github.com/vugu/vugu"
|
||
|
)
|
||
|
|
||
|
type ButtonFullscreen struct {
|
||
|
AttrMap vugu.AttrMap
|
||
|
}
|
||
|
|
||
|
func (c *ButtonFullscreen) handleClick(event vugu.DOMEvent) {
|
||
|
docElem := js.Global().Get("document").Get("documentElement")
|
||
|
|
||
|
docElem.Call("requestFullscreen")
|
||
|
}
|