Added Data attribute function

This commit is contained in:
2019-03-21 21:58:23 -06:00
parent 328e865231
commit c9d9cc59bc
2 changed files with 9 additions and 1 deletions

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"))(),
),
),
)