|
|
@ -32,7 +32,7 @@ func (c *PageHome) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x37EEB0D274E409A1^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x39BABADAC819D98^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.Container)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*layout.Container)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -61,7 +61,7 @@ func (c *PageHome) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x4FF53CAAA41CCE90^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x60D890E7D4B4D522^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Code)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.Code)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -96,7 +96,7 @@ func (c *PageHome) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xF3175C6AA6FF0B20^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xBB0658C92CDDA664^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -113,7 +113,7 @@ func (c *PageHome) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xAB00A3E475771C36^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x99922A4ED6F5E1A0^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -146,7 +146,7 @@ func (c *PageHome) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xB8856D57FA85267D^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x8EA01A93BFDDF486^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -163,7 +163,7 @@ func (c *PageHome) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x30CC61BA1E5579FC^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x767D3E8EC3212FD3^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -196,7 +196,7 @@ func (c *PageHome) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x54DF1AEFA358E73^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x2C49AE7E60E9DDB5^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -213,7 +213,7 @@ func (c *PageHome) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
_ = vgparent
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x6E40BE26D99AF2BC^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xB5E7DF6AFAD70C5D^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -253,7 +253,7 @@ func (c *PageHome) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Some "}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Some "}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xAF71C53E5D5B2249^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xD3BBF83B3D297129^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*view.CodeInline)
|
|
|
|
if vgcomp == nil {
|
|
|
|
if vgcomp == nil {
|
|
|
@ -280,6 +280,186 @@ func (c *PageHome) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: " in this line!"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: " in this line!"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "h2", Attr: []vugu.VGAttribute(nil)}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
vgn.SetInnerHTML(vugu.HTML("Navigation buttons"))
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(3), Namespace: "", Data: "div", Attr: []vugu.VGAttribute{vugu.VGAttribute{Namespace: "", Key: "style", Val: "display: flex; flex-wrap: wrap; gap: 0.5em; margin: 0.5em 0;"}}}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x122B098E9C6ED9D6^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
|
|
|
|
|
|
if vgcomp == nil {
|
|
|
|
|
|
|
|
// create new one if needed
|
|
|
|
|
|
|
|
vgcomp = new(input.Button)
|
|
|
|
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
|
|
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
|
|
|
|
|
|
vgcomp.AttrMap["class"] = "d3c-button-vertical"
|
|
|
|
|
|
|
|
vgcomp.AttrMap["style"] = "margin: 0;"
|
|
|
|
|
|
|
|
vgcomp.SymbolSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xDA7214B27502E225^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
|
|
|
|
|
|
if vgcomp == nil {
|
|
|
|
|
|
|
|
// create new one if needed
|
|
|
|
|
|
|
|
vgcomp = new(icons.LGlobe)
|
|
|
|
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
|
|
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
|
|
|
|
|
|
vgcomp.AttrMap["style"] = "font-size: 2em;"
|
|
|
|
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Navigation 1"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x4FA0C9F5BC305773^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
|
|
|
|
|
|
if vgcomp == nil {
|
|
|
|
|
|
|
|
// create new one if needed
|
|
|
|
|
|
|
|
vgcomp = new(input.Button)
|
|
|
|
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
|
|
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
|
|
|
|
|
|
vgcomp.AttrMap["class"] = "d3c-button-vertical"
|
|
|
|
|
|
|
|
vgcomp.AttrMap["style"] = "margin: 0;"
|
|
|
|
|
|
|
|
vgcomp.SymbolSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x2B614E70C14B984D^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
|
|
|
|
|
|
if vgcomp == nil {
|
|
|
|
|
|
|
|
// create new one if needed
|
|
|
|
|
|
|
|
vgcomp = new(icons.LGlobe)
|
|
|
|
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
|
|
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
|
|
|
|
|
|
vgcomp.AttrMap["style"] = "font-size: 2em;"
|
|
|
|
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Navigation 2"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t\t"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgcompKey := vugu.MakeCompKey(0xCED014187E3A2A45^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*input.Button)
|
|
|
|
|
|
|
|
if vgcomp == nil {
|
|
|
|
|
|
|
|
// create new one if needed
|
|
|
|
|
|
|
|
vgcomp = new(input.Button)
|
|
|
|
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
|
|
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
|
|
|
|
|
|
vgcomp.AttrMap["class"] = "d3c-button-vertical"
|
|
|
|
|
|
|
|
vgcomp.AttrMap["style"] = "margin: 0;"
|
|
|
|
|
|
|
|
vgcomp.SymbolSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
vgcompKey := vugu.MakeCompKey(0x346D44A2EA445BD1^vgin.CurrentPositionHash(), vgiterkey)
|
|
|
|
|
|
|
|
// ask BuildEnv for prior instance of this specific component
|
|
|
|
|
|
|
|
vgcomp, _ := vgin.BuildEnv.CachedComponent(vgcompKey).(*icons.LGlobe)
|
|
|
|
|
|
|
|
if vgcomp == nil {
|
|
|
|
|
|
|
|
// create new one if needed
|
|
|
|
|
|
|
|
vgcomp = new(icons.LGlobe)
|
|
|
|
|
|
|
|
vgin.BuildEnv.WireComponent(vgcomp)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgin.BuildEnv.UseComponent(vgcompKey, vgcomp) // ensure we can use this in the cache next time around
|
|
|
|
|
|
|
|
vgcomp.AttrMap = make(map[string]interface{}, 8)
|
|
|
|
|
|
|
|
vgcomp.AttrMap["style"] = "font-size: 2em;"
|
|
|
|
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
vgcomp.DefaultSlot = vugu.NewBuilderFunc(func(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
|
|
|
|
|
|
|
|
vgn := &vugu.VGNode{Type: vugu.VGNodeType(3)}
|
|
|
|
|
|
|
|
vgout = &vugu.BuildOut{}
|
|
|
|
|
|
|
|
vgout.Out = append(vgout.Out, vgn)
|
|
|
|
|
|
|
|
vgparent := vgn
|
|
|
|
|
|
|
|
_ = vgparent
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "Navigation 3"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
vgout.Components = append(vgout.Components, vgcomp)
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Component: vgcomp}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t\t"}
|
|
|
|
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
|
|
|
|
}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"}
|
|
|
|
vgn = &vugu.VGNode{Type: vugu.VGNodeType(1), Data: "\n\t"}
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
vgparent.AppendChild(vgn)
|
|
|
|
return
|
|
|
|
return
|
|
|
|