@ -31,7 +31,7 @@ func (c *PageInput) 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 ( 0x 615B183A39086BAD ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 20AFF4661A9DBAD9 ^ 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 {
@ -62,7 +62,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "Clickable components support the " }
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "Clickable components support the " }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
{
{
vgcompKey := vugu . MakeCompKey ( 0x 144927BBBE822C9D ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 2E6D6C403988153C ^ 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 {
@ -89,7 +89,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : " event that handlers can be registered to with " }
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : " event that handlers can be registered to with " }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
{
{
vgcompKey := vugu . MakeCompKey ( 0x 14FD40DE21F3B5A9 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 8E897D05FF62A33 ^ 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 {
@ -117,7 +117,7 @@ func (c *PageInput) 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 ( 0x 170617C61FF19735 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x C1C3CCC0AF55B34A ^ 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 {
@ -166,7 +166,7 @@ func (c *PageInput) 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 ( 0x7 DC7020BB251F184 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x7 36F807B47B17752 ^ 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 {
@ -198,7 +198,7 @@ func (c *PageInput) 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 ( 0x D796F89AFC5AFF0 2^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x CBC9DEE03A1E26A 2^ 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 {
@ -232,7 +232,7 @@ func (c *PageInput) 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 ( 0x 6F80C7C729EAD6B7 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 5F232F759A4B73AE ^ 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 {
@ -267,7 +267,7 @@ func (c *PageInput) 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 ( 0x 84BE4EA2C6B25413 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x EB082BAAB0ABC376 ^ 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 {
@ -284,7 +284,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
_ = vgparent
_ = vgparent
{
{
vgcompKey := vugu . MakeCompKey ( 0x 8C7F8502EBBA648 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x E26F025C754B71B6 ^ 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 . LDocument )
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * icons . LDocument )
if vgcomp == nil {
if vgcomp == nil {
@ -330,7 +330,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "Use the " }
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "Use the " }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
{
{
vgcompKey := vugu . MakeCompKey ( 0x 42521B1B8BA38C19 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 67ED61626DC06036 ^ 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 {
@ -360,7 +360,7 @@ func (c *PageInput) 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 ( 0x AD2AC147785AC8D1 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 1B4AC4970673A406 ^ 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 {
@ -395,7 +395,7 @@ func (c *PageInput) 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 ( 0x B9256E7634F07044 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 793CBD2C6ACD6913 ^ 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 {
@ -414,7 +414,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
_ = vgparent
_ = vgparent
{
{
vgcompKey := vugu . MakeCompKey ( 0x 812673DC183AC45 E^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x D464CB7D5C84AD3 E^ 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 {
@ -454,7 +454,7 @@ func (c *PageInput) 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 ( 0x 482382C587C006C3 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 96B6DA51AAF049CA ^ 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 {
@ -486,7 +486,7 @@ func (c *PageInput) 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 ( 0x 25F0462B514B1151 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 3F74EE4F364D7546 ^ 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 {
@ -528,8 +528,45 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn . SetInnerHTML ( vugu . HTML ( "Input fields can be bound to data. They will automatically change their type based on the bound data type." ) )
vgn . SetInnerHTML ( vugu . HTML ( "Input fields can be bound to data. They will automatically change their type based on the bound data type." ) )
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 )
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 3 ) , Namespace : "" , Data : "p" , Attr : [ ] vugu . VGAttribute ( nil ) }
vgparent . AppendChild ( vgn )
{
vgparent := vgn
_ = vgparent
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "To make labels work correctly, you have to use the " }
vgparent . AppendChild ( vgn )
{
vgcompKey := vugu . MakeCompKey ( 0x5A116BC94CF63768 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
// ask BuildEnv for prior instance of this specific component
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * view . CodeInline )
if vgcomp == nil {
// create new one if needed
vgcomp = new ( view . CodeInline )
vgin . BuildEnv . WireComponent ( vgcomp )
}
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
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 : "ID=\"some-id\"" }
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 : " tag (uppercase ID), which will set the ID of the embedded input element!" }
vgparent . AppendChild ( vgn )
}
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "\n\t\t" }
vgparent . AppendChild ( vgn )
{
{
vgcompKey := vugu . MakeCompKey ( 0x31B5453F49A04DDC ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x E85FB93B618818E8 ^ 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 {
@ -550,7 +587,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 3 ) , Namespace : "" , Data : "pre" , Attr : [ ] vugu . VGAttribute { vugu . VGAttribute { Namespace : "" , Key : "style" , Val : "margin: 0;" } } }
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 3 ) , Namespace : "" , Data : "pre" , Attr : [ ] vugu . VGAttribute { vugu . VGAttribute { Namespace : "" , Key : "style" , Val : "margin: 0;" } } }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
vgn . SetInnerHTML ( "<label for=\"page-input-1\">Some input field</label>\n" +
vgn . SetInnerHTML ( "<label for=\"page-input-1\">Some input field</label>\n" +
"<input:Field id =\"page-input-1\" :Bind=\"input.FieldBindAny{&c.inputField1String}\"></input:Field>")
"<input:Field ID =\"page-input-1\" :Bind=\"input.FieldBindAny{&c.inputField1String}\"></input:Field>")
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 )
return
return
@ -567,7 +604,7 @@ func (c *PageInput) 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 ( 0x 30CEFACA214DCAC3 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 89C59B48EFCFE8B2 ^ 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 . Field )
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * input . Field )
if vgcomp == nil {
if vgcomp == nil {
@ -577,8 +614,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
}
}
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
vgcomp . Bind = input . FieldBindAny { & c . inputField1String }
vgcomp . Bind = input . FieldBindAny { & c . inputField1String }
vgcomp . AttrMap = make ( map [ string ] interface { } , 8 )
vgcomp . ID = "page-input-1"
vgcomp . AttrMap [ "id" ] = "page-input-1"
vgout . Components = append ( vgout . Components , vgcomp )
vgout . Components = append ( vgout . Components , vgcomp )
vgn = & vugu . VGNode { Component : vgcomp }
vgn = & vugu . VGNode { Component : vgcomp }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
@ -601,7 +637,7 @@ func (c *PageInput) 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 ( 0x EE8003837DFEF834 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 4E2591ABE6D3FA81 ^ 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 . Field )
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * input . Field )
if vgcomp == nil {
if vgcomp == nil {
@ -611,8 +647,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
}
}
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
vgcomp . Bind = input . FieldBindAny { & c . inputField2Int }
vgcomp . Bind = input . FieldBindAny { & c . inputField2Int }
vgcomp . AttrMap = make ( map [ string ] interface { } , 8 )
vgcomp . ID = "page-input-2"
vgcomp . AttrMap [ "id" ] = "page-input-2"
vgout . Components = append ( vgout . Components , vgcomp )
vgout . Components = append ( vgout . Components , vgcomp )
vgn = & vugu . VGNode { Component : vgcomp }
vgn = & vugu . VGNode { Component : vgcomp }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
@ -635,7 +670,7 @@ func (c *PageInput) 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 ( 0x F92AC9CBF6C0F591 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 551A134858275AB5 ^ 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 . Field )
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * input . Field )
if vgcomp == nil {
if vgcomp == nil {
@ -645,8 +680,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
}
}
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
vgcomp . Bind = input . FieldBindAny { & c . inputField3Float }
vgcomp . Bind = input . FieldBindAny { & c . inputField3Float }
vgcomp . AttrMap = make ( map [ string ] interface { } , 8 )
vgcomp . ID = "page-input-3"
vgcomp . AttrMap [ "id" ] = "page-input-3"
vgout . Components = append ( vgout . Components , vgcomp )
vgout . Components = append ( vgout . Components , vgcomp )
vgn = & vugu . VGNode { Component : vgcomp }
vgn = & vugu . VGNode { Component : vgcomp }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
@ -666,7 +700,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "For passwords you have to use the " }
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "For passwords you have to use the " }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
{
{
vgcompKey := vugu . MakeCompKey ( 0x D147584B819A6C0E ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 7D75A607D172A648 ^ 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 {
@ -701,7 +735,7 @@ func (c *PageInput) 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 ( 0x 99A4B5C7546E1588 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 60E1D908E511559 ^ 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 . Field )
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * input . Field )
if vgcomp == nil {
if vgcomp == nil {
@ -711,8 +745,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
}
}
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
vgcomp . Bind = input . FieldBindPassword { & c . inputField4String }
vgcomp . Bind = input . FieldBindPassword { & c . inputField4String }
vgcomp . AttrMap = make ( map [ string ] interface { } , 8 )
vgcomp . ID = "page-input-4"
vgcomp . AttrMap [ "id" ] = "page-input-4"
vgout . Components = append ( vgout . Components , vgcomp )
vgout . Components = append ( vgout . Components , vgcomp )
vgn = & vugu . VGNode { Component : vgcomp }
vgn = & vugu . VGNode { Component : vgcomp }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
@ -735,7 +768,7 @@ func (c *PageInput) 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 ( 0x D7881C719A131300 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 9CE0F544EC27FBEB ^ 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 . Field )
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * input . Field )
if vgcomp == nil {
if vgcomp == nil {
@ -745,8 +778,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
}
}
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
vgin . BuildEnv . UseComponent ( vgcompKey , vgcomp ) // ensure we can use this in the cache next time around
vgcomp . Bind = input . FieldBindAny { & c . inputField5String }
vgcomp . Bind = input . FieldBindAny { & c . inputField5String }
vgcomp . AttrMap = make ( map [ string ] interface { } , 8 )
vgcomp . ID = "page-input-5"
vgcomp . AttrMap [ "id" ] = "page-input-5"
vgcomp . DefaultSlot = vugu . NewBuilderFunc ( func ( vgin * vugu . BuildIn ) ( vgout * vugu . BuildOut ) {
vgcomp . DefaultSlot = vugu . NewBuilderFunc ( func ( vgin * vugu . BuildIn ) ( vgout * vugu . BuildOut ) {
vgn := & vugu . VGNode { Type : vugu . VGNodeType ( 3 ) }
vgn := & vugu . VGNode { Type : vugu . VGNodeType ( 3 ) }
vgout = & vugu . BuildOut { }
vgout = & vugu . BuildOut { }
@ -757,7 +789,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "\n\t\t\t" }
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "\n\t\t\t" }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
{
{
vgcompKey := vugu . MakeCompKey ( 0x 8A0444B34DF33F9B ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x E80EA74D367F5D16 ^ 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 {
@ -778,7 +810,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
if ! c . inputField5Bool {
if ! c . inputField5Bool {
{
{
vgcompKey := vugu . MakeCompKey ( 0x 8DA586C1EA6AC2F ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x A5DA8A9DBDB90700 ^ 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 . LLockOpened )
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * icons . LLockOpened )
if vgcomp == nil {
if vgcomp == nil {
@ -798,7 +830,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
if c . inputField5Bool {
if c . inputField5Bool {
{
{
vgcompKey := vugu . MakeCompKey ( 0x C024DEF46FCAC5C ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x DD2A63E717759625 ^ 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 . LLockClosed )
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * icons . LLockClosed )
if vgcomp == nil {
if vgcomp == nil {
@ -825,7 +857,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "\n\t\t\t" }
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "\n\t\t\t" }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
{
{
vgcompKey := vugu . MakeCompKey ( 0x1 BC4315231335E47 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x1 F20F757A0BF686B ^ 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 {
@ -844,7 +876,7 @@ func (c *PageInput) Build(vgin *vugu.BuildIn) (vgout *vugu.BuildOut) {
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "\n\t\t\t\t" }
vgn = & vugu . VGNode { Type : vugu . VGNodeType ( 1 ) , Data : "\n\t\t\t\t" }
vgparent . AppendChild ( vgn )
vgparent . AppendChild ( vgn )
{
{
vgcompKey := vugu . MakeCompKey ( 0x 4144F85FC2E531FE ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 70D6A89A66CE9BBA ^ 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 {
@ -886,7 +918,7 @@ func (c *PageInput) 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 ( 0x 32C555F078A970D4 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0x 454363DE2B487242 ^ 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 . Dropdown )
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * input . Dropdown )
if vgcomp == nil {
if vgcomp == nil {
@ -921,7 +953,7 @@ func (c *PageInput) 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 ( 0xD 57B23C7C9B6D8F8 ^ vgin . CurrentPositionHash ( ) , vgiterkey )
vgcompKey := vugu . MakeCompKey ( 0xD 0C3C4E61B43E42F ^ 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 . Tags )
vgcomp , _ := vgin . BuildEnv . CachedComponent ( vgcompKey ) . ( * input . Tags )
if vgcomp == nil {
if vgcomp == nil {