HTML
HTML component is used to display html content.
API
func HTML(c *tgframe.Container, html string, conf ...*HTMLConf)
Parameters
c: Parent container.html: HTML content to display.conf: Optional configuration, at most one.
// HTMLConf is the configuration for the HTML component.
type HTMLConf struct {
tgframe.Base // ID
}
Example
tgcomp.HTML(p.Main,
"<b>Hello world gen by html component</b>")