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.
21 lines
396 B
Go
21 lines
396 B
Go
1 year ago
|
package navigation
|
||
|
|
||
|
import (
|
||
|
"github.com/vugu/vgrouter"
|
||
|
"github.com/vugu/vugu"
|
||
|
)
|
||
|
|
||
|
type SidebarEntry struct {
|
||
|
vgrouter.NavigatorRef
|
||
|
AttrMap vugu.AttrMap
|
||
|
|
||
|
SymbolSlot vugu.Builder // Slot for the symbol.
|
||
|
DefaultSlot vugu.Builder // Slot for the text and other stuff. Should be a div element!
|
||
|
|
||
|
URL string
|
||
|
}
|
||
|
|
||
|
func (c *SidebarEntry) handleClick(event vugu.DOMEvent) {
|
||
|
c.Navigate(c.URL, nil)
|
||
|
}
|