Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from webability-go/late-night
v0.0.11
- Loading branch information
Showing
31 changed files
with
424 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,37 @@ | ||
package wajaf | ||
|
||
type AccordionContainer NodeDef | ||
type AccordionContainer struct { | ||
NodeDef | ||
} | ||
|
||
func NewAccordionContainer(id string) AccordionContainer { | ||
func NewAccordionContainer(id string) *AccordionContainer { | ||
|
||
c := NewNode("container", "accordionContainer") | ||
c := &AccordionContainer{ | ||
NodeDef: NewNode("container", "accordionContainer"), | ||
} | ||
c.SetID(id) | ||
|
||
c.RegisterKnownAttributes([]string{"display", "style", "classname", "classnamezone", "left", "width", "right", "top", "height", "bottom", "haslistener"}) | ||
c.RegisterKnownChildren([]string{"zone", "event", "help", "message"}) | ||
c.RegisterKnownChildren([]string{"zone", "event", "help"}) | ||
|
||
return c | ||
} | ||
|
||
func (c *AccordionContainer) NewZone(ztype string, id string) NodeDef { | ||
z := NewAccordionZone(ztype, id) | ||
c.AddChild(z) | ||
return z | ||
} | ||
|
||
type AccordionZone NodeDef | ||
|
||
func NewAccordionZone(id string) AccordionZone { | ||
func NewAccordionZone(ztype string, id string) AccordionZone { | ||
|
||
z := NewNode("zone", "") | ||
z := NewNode("zone", ztype) | ||
z.SetID(id) | ||
|
||
z.RegisterKnownAttributes([]string{"style", "classname", "application", "params"}) | ||
z.RegisterKnownChildren([]string{"container", "element"}) | ||
z.RegisterKnownChildren([]string{"container", "element", "event", "help"}) | ||
|
||
return z | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,37 @@ | ||
package wajaf | ||
|
||
type BarContainer NodeDef | ||
type BarContainer struct { | ||
NodeDef | ||
} | ||
|
||
func NewBarContainer(id string) BarContainer { | ||
func NewBarContainer(id string) *BarContainer { | ||
|
||
c := NewNode("container", "barContainer") | ||
c := &BarContainer{ | ||
NodeDef: NewNode("container", "barContainer"), | ||
} | ||
c.SetID(id) | ||
|
||
c.RegisterKnownAttributes([]string{"display", "style", "classname", "classnamezone", "left", "width", "right", "top", "height", "bottom", "haslistener"}) | ||
c.RegisterKnownChildren([]string{"zone"}) | ||
c.RegisterKnownChildren([]string{"zone", "event", "help"}) | ||
|
||
return c | ||
} | ||
|
||
func (c *BarContainer) NewZone(ztype string, id string) NodeDef { | ||
z := NewBarZone(ztype, id) | ||
c.AddChild(z) | ||
return z | ||
} | ||
|
||
type BarZone NodeDef | ||
|
||
func NewBarZone(id string) BarZone { | ||
func NewBarZone(ztype string, id string) BarZone { | ||
|
||
z := NewNode("zone", "") | ||
z := NewNode("zone", ztype) | ||
z.SetID(id) | ||
|
||
z.RegisterKnownAttributes([]string{"style", "classname", "application", "params"}) | ||
z.RegisterKnownChildren([]string{"container", "element"}) | ||
z.RegisterKnownChildren([]string{"container", "element", "event", "help"}) | ||
|
||
return z | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,37 @@ | ||
package wajaf | ||
|
||
type DockContainer NodeDef | ||
type DockContainer struct { | ||
NodeDef | ||
} | ||
|
||
func NewDockContainer(id string) DockContainer { | ||
func NewDockContainer(id string) *DockContainer { | ||
|
||
c := NewNode("container", "dockContainer") | ||
c := &DockContainer{ | ||
NodeDef: NewNode("container", "dockContainer"), | ||
} | ||
c.SetID(id) | ||
|
||
c.RegisterKnownAttributes([]string{"display", "style", "classname", "classnamezone", "left", "width", "right", "top", "height", "bottom", "haslistener"}) | ||
c.RegisterKnownChildren([]string{"zone"}) | ||
c.RegisterKnownChildren([]string{"zone", "event", "help"}) | ||
|
||
return c | ||
} | ||
|
||
func (c *DockContainer) NewZone(ztype string, id string) NodeDef { | ||
z := NewDockZone(ztype, id) | ||
c.AddChild(z) | ||
return z | ||
} | ||
|
||
type DockZone NodeDef | ||
|
||
func NewDockZone(id string) DockZone { | ||
func NewDockZone(ztype string, id string) DockZone { | ||
|
||
z := NewNode("zone", "") | ||
z := NewNode("zone", ztype) | ||
z.SetID(id) | ||
|
||
z.RegisterKnownAttributes([]string{"style", "classname", "application", "params"}) | ||
z.RegisterKnownChildren([]string{"container", "element"}) | ||
z.RegisterKnownChildren([]string{"container", "element", "event", "help"}) | ||
|
||
return z | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,38 @@ | ||
package wajaf | ||
|
||
type ExpandableContainer NodeDef | ||
type ExpandableContainer struct { | ||
NodeDef | ||
} | ||
|
||
func NewExpandableContainer(id string) ExpandableContainer { | ||
func NewExpandableContainer(id string) *ExpandableContainer { | ||
|
||
c := NewNode("container", "expandableContainer") | ||
c := &ExpandableContainer{ | ||
NodeDef: NewNode("container", "expandableContainer"), | ||
} | ||
c.SetID(id) | ||
|
||
c.RegisterKnownAttributes([]string{"display", "style", "classname", "classnamezone", "left", "width", "right", "top", "height", "bottom", "haslistener"}) | ||
c.RegisterKnownChildren([]string{"zone"}) | ||
c.RegisterKnownChildren([]string{"zone", "event", "help"}) | ||
|
||
return c | ||
} | ||
|
||
func (c *ExpandableContainer) NewZone(ztype string, id string) NodeDef { | ||
z := NewExpandableZone(ztype, id) | ||
c.AddChild(z) | ||
return z | ||
} | ||
|
||
type ExpandableZone NodeDef | ||
|
||
func NewExpandableZone(id string) ExpandableZone { | ||
func NewExpandableZone(ztype string, id string) ExpandableZone { | ||
|
||
z := NewNode("zone", "") | ||
z := NewNode("zone", ztype) | ||
z.SetID(id) | ||
|
||
z.RegisterKnownAttributes([]string{"style", "classname", "application", "params", | ||
"title", "closed", "classnameselectoropen", "classnameselectorclose", "display"}) | ||
z.RegisterKnownChildren([]string{"container", "element"}) | ||
z.RegisterKnownChildren([]string{"container", "element", "event", "help"}) | ||
|
||
return z | ||
} |
Oops, something went wrong.