Documentation ¶
Overview ¶
Package wajaf is a go <=> javascript synchronized framework
Index ¶
- Constants
- Variables
- func GetJSFile(path string) []byte
- type AccordionContainer
- type AccordionZone
- type Application
- type Attributes
- type BarContainer
- type BarZone
- type ButtonElement
- type CodeElement
- type CodeNode
- type ColorFieldElement
- type DBListContainer
- type DBListDataset
- type DBListTemplate
- type DBListZone
- type DateFieldElement
- type DateSelectorElement
- type DockContainer
- type DockZone
- type Event
- type ExpandableContainer
- type ExpandableZone
- type FileFieldElement
- type FloatingContainer
- type FloatingZone
- type GGraphDataset
- type GGraphElement
- type GridContainer
- type GridDataset
- type GridTemplate
- type GridZone
- type GroupContainer
- type GroupDataset
- type GroupZone
- type HTMLElement
- type Help
- type HiddenElement
- type HiddenFieldElement
- type ImageElement
- type LOVFieldElement
- type LinkElement
- type ListContainer
- type ListDataset
- type ListTemplate
- type ListZone
- type MMCFieldElement
- type MatrixContainer
- type MatrixDataset
- type MatrixTemplate
- type MatrixZone
- type Message
- type Node
- func (n *Node) AddChild(node NodeDef) error
- func (n *Node) AddEvent(name string, code string)
- func (n *Node) AddHelp(tooltip string, title string, description string)
- func (n *Node) AddMessage(name string, value string)
- func (n *Node) DecodeAttributes(s xml.StartElement)
- func (n *Node) GetAttribute(name string) (string, error)
- func (n *Node) GetAttributes() Attributes
- func (n *Node) GetChildren() []NodeDef
- func (n *Node) GetData() string
- func (n *Node) GetID() string
- func (n *Node) GetSuperType() string
- func (n *Node) GetType() string
- func (n *Node) GoString() string
- func (n *Node) MarshalJSON() ([]byte, error)
- func (n *Node) MarshalXML(e *xml.Encoder, start xml.StartElement) error
- func (n *Node) RegisterKnownAttributes(attributes []string) error
- func (n *Node) RegisterKnownChildren(children []string) error
- func (n *Node) SetAttribute(name string, value string) error
- func (n *Node) SetAttributes(attr Attributes) error
- func (n *Node) SetData(data string)
- func (n *Node) SetID(id string)
- func (n *Node) String() string
- func (n *Node) UnmarshalJSON([]byte) error
- func (n *Node) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error
- type NodeDef
- type Option
- type Options
- type PaginationElement
- type SeparatorContainer
- type SeparatorZone
- type SetTextFieldElement
- type SimpleContainer
- type SimpleZone
- type TabContainer
- type TabZone
- type TableContainer
- type TableZone
- type TextAreaFieldElement
- type TextElement
- type TextFieldElement
- type TreeContainer
- type TreeDataset
- type TreeTemplate
- type TreeZone
- type WidgetContainer
- type WidgetDataset
- type WidgetTemplate
- type WidgetZone
- type WindowContainer
- type WindowZone
Constants ¶
View Source
const VERSION = "0.1.3"
VERSION is the used version nombre of the XCore library.
Variables ¶
View Source
var LOG = false
LOG is the flag to activate logging on the library. if LOG is set to TRUE, LOG indicates to the XCore libraries to log a trace of functions called, with most important parameters. LOG can be set to true or false dynamically to trace only parts of code on demand.
Functions ¶
Types ¶
type AccordionContainer ¶
type AccordionContainer struct {
NodeDef
}
func NewAccordionContainer ¶
func NewAccordionContainer(id string) *AccordionContainer
type AccordionZone ¶
type AccordionZone NodeDef
func NewAccordionZone ¶
func NewAccordionZone(ztype string, id string) AccordionZone
type Application ¶
type Application NodeDef
func NewApplication ¶
func NewApplication(id string) Application
type Attributes ¶
type BarContainer ¶
type BarContainer struct {
NodeDef
}
func NewBarContainer ¶
func NewBarContainer(id string) *BarContainer
type ButtonElement ¶
type ButtonElement NodeDef
func NewButtonElement ¶
func NewButtonElement(id string, action string) ButtonElement
type CodeElement ¶
type CodeElement NodeDef
func NewCodeElement ¶
func NewCodeElement(id string, code string) CodeElement
func NewCodeNode ¶ added in v0.1.3
func NewCodeNode(id string, tp string, code string) CodeElement
type ColorFieldElement ¶ added in v0.1.3
type ColorFieldElement NodeDef
func NewColorFieldElement ¶ added in v0.1.3
func NewColorFieldElement(id string) ColorFieldElement
type DBListContainer ¶
type DBListContainer struct {
NodeDef
}
func NewDBListContainer ¶
func NewDBListContainer(id string) *DBListContainer
func (*DBListContainer) NewDataset ¶
func (c *DBListContainer) NewDataset(dtype string, data string) NodeDef
func (*DBListContainer) NewTemplate ¶
func (c *DBListContainer) NewTemplate(ttype string, name string) NodeDef
type DBListDataset ¶
type DBListDataset NodeDef
func NewDBListDataset ¶
func NewDBListDataset(dtype string, data string) DBListDataset
type DBListTemplate ¶
type DBListTemplate NodeDef
func NewDBListTemplate ¶
func NewDBListTemplate(ttype string, name string) DBListTemplate
type DBListZone ¶
type DBListZone NodeDef
func NewDBListZone ¶
func NewDBListZone(id string, ztype string) DBListZone
type DateFieldElement ¶
type DateFieldElement NodeDef
func NewDateFieldElement ¶
func NewDateFieldElement(id string) DateFieldElement
type DateSelectorElement ¶
type DateSelectorElement NodeDef
func NewDateSelectorElement ¶
func NewDateSelectorElement(id string) DateSelectorElement
type DockContainer ¶
type DockContainer struct {
NodeDef
}
func NewDockContainer ¶
func NewDockContainer(id string) *DockContainer
type ExpandableContainer ¶
type ExpandableContainer struct {
NodeDef
}
func NewExpandableContainer ¶
func NewExpandableContainer(id string) *ExpandableContainer
type ExpandableZone ¶
type ExpandableZone NodeDef
func NewExpandableZone ¶
func NewExpandableZone(ztype string, id string) ExpandableZone
type FileFieldElement ¶
type FileFieldElement NodeDef
func NewFileFieldElement ¶
func NewFileFieldElement(id string) FileFieldElement
type FloatingContainer ¶
type FloatingContainer struct {
NodeDef
}
func NewFloatingContainer ¶
func NewFloatingContainer(id string) *FloatingContainer
type FloatingZone ¶
type FloatingZone NodeDef
func NewFloatingZone ¶
func NewFloatingZone(ztype string, id string) FloatingZone
type GGraphDataset ¶
type GGraphDataset NodeDef
func NewGGraphDataset ¶
func NewGGraphDataset(data string) GGraphDataset
type GGraphElement ¶
type GGraphElement NodeDef
func NewGGraphElement ¶
func NewGGraphElement(id string) GGraphElement
type GridContainer ¶
type GridContainer struct {
NodeDef
}
func NewGridContainer ¶
func NewGridContainer(id string) *GridContainer
func (*GridContainer) NewDataset ¶
func (c *GridContainer) NewDataset(dtype string, data string) NodeDef
func (*GridContainer) NewTemplate ¶
func (c *GridContainer) NewTemplate(ttype string, name string) NodeDef
type GridDataset ¶
type GridDataset NodeDef
func NewGridDataset ¶
func NewGridDataset(dtype string, data string) GridDataset
type GridTemplate ¶
type GridTemplate NodeDef
func NewGridTemplate ¶
func NewGridTemplate(ttype string, name string) GridTemplate
type GroupContainer ¶
type GroupContainer struct {
NodeDef
}
func NewGroupContainer ¶
func NewGroupContainer(id string) *GroupContainer
func (*GroupContainer) NewDataset ¶
func (c *GroupContainer) NewDataset(dtype string, data string) NodeDef
type GroupDataset ¶
type GroupDataset NodeDef
func NewGroupDataset ¶
func NewGroupDataset(dtype string, data string) GroupDataset
type HTMLElement ¶
type HTMLElement NodeDef
func NewHTMLElement ¶
func NewHTMLElement(id string, data string) HTMLElement
type HiddenElement ¶
type HiddenElement NodeDef
func NewHiddenElement ¶
func NewHiddenElement(id string, data string) HiddenElement
type HiddenFieldElement ¶
type HiddenFieldElement NodeDef
func NewHiddenFieldElement ¶
func NewHiddenFieldElement(id string) HiddenFieldElement
type ImageElement ¶
type ImageElement NodeDef
func NewImageElement ¶
func NewImageElement(id string, src string, data string) ImageElement
type LOVFieldElement ¶
type LOVFieldElement NodeDef
func NewLOVFieldElement ¶
func NewLOVFieldElement(id string) LOVFieldElement
type LinkElement ¶
type LinkElement NodeDef
func NewLinkElement ¶
func NewLinkElement(id string) LinkElement
type ListContainer ¶
type ListContainer struct {
NodeDef
}
func NewListContainer ¶
func NewListContainer(id string) *ListContainer
func (*ListContainer) NewDataset ¶
func (c *ListContainer) NewDataset(dtype string, data string) NodeDef
func (*ListContainer) NewTemplate ¶
func (c *ListContainer) NewTemplate(ttype string, name string) NodeDef
type ListDataset ¶
type ListDataset NodeDef
func NewListDataset ¶
func NewListDataset(dtype string, data string) ListDataset
type ListTemplate ¶
type ListTemplate NodeDef
func NewListTemplate ¶
func NewListTemplate(ttype string, name string) ListTemplate
type MMCFieldElement ¶
type MMCFieldElement NodeDef
func NewMMCFieldElement ¶
func NewMMCFieldElement(id string) MMCFieldElement
type MatrixContainer ¶
type MatrixContainer struct {
NodeDef
}
func NewMatrixContainer ¶
func NewMatrixContainer(id string) *MatrixContainer
func (*MatrixContainer) NewDataset ¶
func (c *MatrixContainer) NewDataset(dtype string, data string) NodeDef
func (*MatrixContainer) NewTemplate ¶
func (c *MatrixContainer) NewTemplate(ttype string, name string) NodeDef
type MatrixDataset ¶
type MatrixDataset NodeDef
func NewMatrixDataset ¶
func NewMatrixDataset(dtype string, data string) MatrixDataset
type MatrixTemplate ¶
type MatrixTemplate NodeDef
func NewMatrixTemplate ¶
func NewMatrixTemplate(ttype string, name string) MatrixTemplate
type MatrixZone ¶
type MatrixZone NodeDef
func NewMatrixZone ¶
func NewMatrixZone(ztype string, id string) MatrixZone
type Message ¶
type Message NodeDef
func NewMessage ¶
func NewOptions ¶ added in v0.1.3
func NewOptions() Message
type Node ¶
type Node struct { ID string SuperType string Type string Data string // contains filtered or unexported fields }
func (*Node) AddMessage ¶
func (*Node) DecodeAttributes ¶
func (n *Node) DecodeAttributes(s xml.StartElement)
func (*Node) GetAttributes ¶
func (n *Node) GetAttributes() Attributes
func (*Node) GetChildren ¶
func (*Node) GetSuperType ¶
func (*Node) MarshalJSON ¶
func (*Node) MarshalXML ¶
func (*Node) RegisterKnownAttributes ¶
func (*Node) RegisterKnownChildren ¶
func (*Node) SetAttributes ¶
func (n *Node) SetAttributes(attr Attributes) error
func (*Node) UnmarshalJSON ¶
func (*Node) UnmarshalXML ¶
type NodeDef ¶
type NodeDef interface { fmt.Stringer fmt.GoStringer RegisterKnownAttributes([]string) error RegisterKnownChildren([]string) error SetID(id string) SetData(data string) GetID() string GetType() string GetSuperType() string GetData() string SetAttribute(string, string) error SetAttributes(Attributes) error GetAttribute(string) (string, error) GetAttributes() Attributes AddHelp(string, string, string) AddMessage(string, string) AddEvent(string, string) AddChild(NodeDef) error GetChildren() []NodeDef // DecodeAttributes(xml.StartElement) UnmarshalXML(*xml.Decoder, xml.StartElement) error MarshalXML(*xml.Encoder, xml.StartElement) error UnmarshalJSON([]byte) error MarshalJSON() ([]byte, error) }
type PaginationElement ¶
type PaginationElement NodeDef
func NewPaginationElement ¶
func NewPaginationElement(id string) PaginationElement
type SeparatorContainer ¶
type SeparatorContainer struct {
NodeDef
}
func NewSeparatorContainer ¶
func NewSeparatorContainer(id string) *SeparatorContainer
type SeparatorZone ¶
type SeparatorZone NodeDef
func NewSeparatorZone ¶
func NewSeparatorZone(ztype string, id string) SeparatorZone
type SetTextFieldElement ¶
type SetTextFieldElement NodeDef
func NewSetTextFieldElement ¶
func NewSetTextFieldElement(id string) SetTextFieldElement
type SimpleContainer ¶
type SimpleContainer struct {
NodeDef
}
func NewSimpleContainer ¶
func NewSimpleContainer(id string) *SimpleContainer
type SimpleZone ¶
type SimpleZone NodeDef
func NewSimpleZone ¶
func NewSimpleZone(ztype string, id string) SimpleZone
type TabContainer ¶
type TabContainer struct {
NodeDef
}
func NewTabContainer ¶
func NewTabContainer(id string) *TabContainer
type TableContainer ¶
type TableContainer struct {
NodeDef
}
func NewTableContainer ¶
func NewTableContainer(id string) *TableContainer
type TextAreaFieldElement ¶
type TextAreaFieldElement NodeDef
func NewTextAreaFieldElement ¶
func NewTextAreaFieldElement(id string) TextAreaFieldElement
type TextElement ¶
type TextElement NodeDef
func NewTextElement ¶
func NewTextElement(id string, data string) TextElement
type TextFieldElement ¶
type TextFieldElement NodeDef
func NewTextFieldElement ¶
func NewTextFieldElement(id string) TextFieldElement
type TreeContainer ¶
type TreeContainer struct {
NodeDef
}
func NewTreeContainer ¶
func NewTreeContainer(id string) *TreeContainer
func (*TreeContainer) NewDataset ¶
func (c *TreeContainer) NewDataset(dtype string, data string) NodeDef
func (*TreeContainer) NewTemplate ¶
func (c *TreeContainer) NewTemplate(ttype string, name string) NodeDef
type TreeDataset ¶
type TreeDataset NodeDef
func NewTreeDataset ¶
func NewTreeDataset(dtype string, data string) TreeDataset
type TreeTemplate ¶
type TreeTemplate NodeDef
func NewTreeTemplate ¶
func NewTreeTemplate(ttype string, name string) TreeTemplate
type WidgetContainer ¶
type WidgetContainer struct {
NodeDef
}
func NewWidgetContainer ¶
func NewWidgetContainer(id string) *WidgetContainer
func (*WidgetContainer) NewDataset ¶
func (c *WidgetContainer) NewDataset(dtype string, data string) NodeDef
func (*WidgetContainer) NewTemplate ¶
func (c *WidgetContainer) NewTemplate(ttype string, name string) NodeDef
type WidgetDataset ¶
type WidgetDataset NodeDef
func NewWidgetDataset ¶
func NewWidgetDataset(dtype string, data string) WidgetDataset
type WidgetTemplate ¶
type WidgetTemplate NodeDef
func NewWidgetTemplate ¶
func NewWidgetTemplate(ttype string, name string) WidgetTemplate
type WidgetZone ¶
type WidgetZone NodeDef
func NewWidgetZone ¶
func NewWidgetZone(ztype string, id string) WidgetZone
type WindowContainer ¶
type WindowContainer struct {
NodeDef
}
func NewWindowContainer ¶
func NewWindowContainer(id string) *WindowContainer
type WindowZone ¶
type WindowZone NodeDef
func NewWindowZone ¶
func NewWindowZone(ztype string, id string) WindowZone
Source Files ¶
- accordioncontainer.go
- application.go
- barcontainer.go
- buttonelement.go
- codeelement.go
- codenode.go
- colorfieldelement.go
- datefieldelement.go
- dateselectorelement.go
- dblistcontainer.go
- dockcontainer.go
- event.go
- expandablecontainer.go
- filefieldelement.go
- floatingcontainer.go
- ggraphelement.go
- gridcontainer.go
- groupcontainer.go
- help.go
- hiddenelement.go
- hiddenfieldelement.go
- htmlelement.go
- imageelement.go
- jsfiles.go
- linkelement.go
- listcontainer.go
- lovfieldelement.go
- matrixcontainer.go
- message.go
- mmcfieldelement.go
- node.go
- options.go
- paginationelement.go
- separatorcontainer.go
- settextfieldelement.go
- simplecontainer.go
- tabcontainer.go
- tablecontainer.go
- textareafieldelement.go
- textelement.go
- textfieldelement.go
- treecontainer.go
- wajaf.go
- widgetcontainer.go
- windowcontainer.go
Directories ¶
Path | Synopsis |
---|---|
examples
|
|
js package is made to load a javascript file and dispatch it on a web server or anything you want to.
|
js package is made to load a javascript file and dispatch it on a web server or anything you want to. |
Click to show internal directories.
Click to hide internal directories.