Versions in this module Expand all Collapse all v0 v0.1.0 Jun 14, 2017 Changes in this version + const BUTTON + const DROPDOWN + const INPUT + const LIST + const TABLE + const TEXT + const TEXTAREA + var DefaultPathPrefix = "/govuegui" + var DefaultServerPort = ":2700" + var VueComponents = []VueComponent + func NewRouter(g *Gui) *mux.Router + func Serve(g *Gui) error + type Box struct + Elements []*Element + Key string + Options map[string]*Option + func (b *Box) Button(id string) *Element + func (b *Box) Clear() + func (b *Box) Dropdown(id string) *Element + func (b *Box) Element(id string, inputType ElementType) *Element + func (b *Box) ID() string + func (b *Box) Input(id string) *Element + func (b *Box) List(id string) *Element + func (b *Box) Option(opt string, values ...string) *Box + func (b *Box) Table(id string) *Element + func (b *Box) Text(id string) *Element + func (b *Box) Textarea(id string) *Element + type Element struct + DataKey string + InputType ElementType + Key string + Label string + Options map[string]*Option + Watch bool + func (e *Element) Action(f func(*Gui)) *Element + func (e *Element) Get() interface{} + func (e *Element) ID() string + func (e *Element) Option(opt string, values ...string) *Element + func (e *Element) Set(i interface{}) error + func (e *Element) SetLabel(l string) + func (e *Element) Update() *Element + type ElementType string + type Form struct + Boxes []*Box + Key string + Options map[string]*Option + func (f *Form) Box(id string) *Box + func (f *Form) ID() string + func (f *Form) Option(opt string, values ...string) *Form + type Gui struct + Actions map[string]func(*Gui) + Data *storage.Data + Forms []*Form + PathPrefix string + ServerPort string + Title string + UpdateData *storage.Data + func NewGui(t GuiTemplate) *Gui + func (g *Gui) Form(id string) *Form + func (g *Gui) Marshal() ([]byte, error) + func (g *Gui) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (g *Gui) Update(dataKeys ...string) error + type GuiTemplate struct + Body string + CSSHandler func(w http.ResponseWriter, r *http.Request) + CustomCSS string + Files map[string]func(w http.ResponseWriter, r *http.Request) + GvgBox string + GvgButton string + GvgDropdown string + GvgElement string + GvgForm string + GvgForms string + GvgInput string + GvgList string + GvgTable string + GvgText string + GvgTextarea string + HeadAdd string + type Option struct + Option string + Values []string + type VueComponent struct + CompFunc func(GuiTemplate) *vuetemplate.Component + ElementType ElementType + Name string