feat: add real-time chart example
This commit is contained in:
@@ -26,6 +26,14 @@ func Placeholder(v string) H {
|
||||
return gh.Placeholder(v)
|
||||
}
|
||||
|
||||
func Rel(v string) H {
|
||||
return gh.Rel(v)
|
||||
}
|
||||
|
||||
func Class(v string) H {
|
||||
return gh.Class(v)
|
||||
}
|
||||
|
||||
// Data attributes automatically have their name prefixed with "data-".
|
||||
func Data(name, v string) H {
|
||||
return gh.Data(name, v)
|
||||
|
||||
@@ -392,6 +392,10 @@ func Var(children ...H) H {
|
||||
return gh.Var(retype(children)...)
|
||||
}
|
||||
|
||||
func StyleEl(children ...H) H {
|
||||
return gh.StyleEl(retype(children)...)
|
||||
}
|
||||
|
||||
func Video(children ...H) H {
|
||||
return gh.Video(retype(children)...)
|
||||
}
|
||||
|
||||
6
h/h.go
6
h/h.go
@@ -35,6 +35,12 @@ func Raw(s string) H {
|
||||
return g.Raw(s)
|
||||
}
|
||||
|
||||
// Rawf creates a text DOM [Node] that just Renders the interpolated and
|
||||
// unescaped string format.
|
||||
func Rawf(format string, a ...any) H {
|
||||
return g.Rawf(format, a...)
|
||||
}
|
||||
|
||||
// Attr creates an attribute DOM [Node] with a name and optional value.
|
||||
// If only a name is passed, it's a name-only (boolean) attribute (like "required").
|
||||
// If a name and value are passed, it's a name-value attribute (like `class="header"`).
|
||||
|
||||
Reference in New Issue
Block a user