Skip to content

Commit

Permalink
Fix feed example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Splizard committed Dec 2, 2020
1 parent a1cf06e commit 6f58ac6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions new/feed/example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ package feed_test
import (
"image/color"

"qlova.org/seed/new/app"
"qlova.org/seed/client"
"qlova.org/seed/use/js/console"
"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 Example() {
Expand All @@ -18,11 +19,11 @@ func Example() {
})

app.New("Feed",
button.New("Click me", client.OnClick(values.Refresh())),
button.New(text.Set("Click me"), client.OnClick(values.Refresh())),

values.New(align.Center(),
text.New(values.Data),
text.New("hello", text.Color(color.NRGBA{255, 0, 0, 255}),
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)),
),
),
Expand Down

0 comments on commit 6f58ac6

Please sign in to comment.