Added Data attribute function

This commit is contained in:
b committed 2019-03-21 21:58:23 -06:00
1 parent 328e865231
commit c9d9cc59bc
2 files changed
+9 -1

No files matched your search

+1 -1
View File
@@ -12,7 +12,7 @@ func main() {
h.Div()(
h.Img(h.Src("./me.jpg"), h.Id("profile-photo")),
h.Text("hello hatmill!"),
h.Div(h.Disabled())(),
h.Div(h.Disabled(), h.Data("coolness", "awesome"))(),
),
),
)