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.
23 lines
741 B
Go
23 lines
741 B
Go
1 year ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/input"
|
||
|
"git.d3nexus.de/Dadido3/D3vugu-components/components/overlay"
|
||
|
"git.d3nexus.de/Dadido3/D3vugu-components/icons"
|
||
|
"github.com/vugu/vugu"
|
||
|
)
|
||
|
|
||
|
type PageOverlays struct {
|
||
|
overlay.OverlayContainerRef
|
||
|
}
|
||
|
|
||
|
func (c *PageOverlays) handleButton(event vugu.DOMEvent) {
|
||
|
c.SetModal(&overlay.ModalRequester{
|
||
|
SymbolSlot: &icons.LInfoCircle{AttrMap: vugu.AttrMap{"style": "font-size: 2em;"}},
|
||
|
Title: "Simple requester",
|
||
|
Message: "This is a simple modal requester, are you happy with it?\nIt also supports multi line text!",
|
||
|
ClickAbort: input.ClickFunc(func(event input.ClickEvent) {}),
|
||
|
ClickYes: input.ClickFunc(func(event input.ClickEvent) {}),
|
||
|
})
|
||
|
}
|