Documentation ¶
Overview ¶
Example ¶
package main import ( "image/color" "qlova.org/seed/client" "qlova.org/seed/new/app" "qlova.org/seed/new/button" "qlova.org/seed/new/feed" "qlova.org/seed/new/text" "qlova.org/seed/set/align" "qlova.org/seed/use/js" "qlova.org/seed/use/js/console" ) func main() { var values = feed.With(func() []string { return []string{"a", "b", "c"} }) app.New("Feed", button.New(text.Set("Click me"), client.OnClick(values.Refresh())), values.New(align.Center(), text.New(text.SetStringTo(js.String{Value: values.Data.GetValue()})), text.New(text.Set("hello"), text.SetColor(color.NRGBA{255, 0, 0, 255}), client.OnClick(console.Log(values.Data)), ), ), ).Launch() }
Output:
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Feed ¶
Feed has food ready to populate.
func With ¶
With returns a new Feed on the given Food, the options provided will be applied to the feed itself.
func (*Feed) Components ¶
Components implements client.Compound
Click to show internal directories.
Click to hide internal directories.