Text

Text component display a text.

API

func Text(c *tgframe.Container, text string)
func TextWithID(c *tgframe.Container, text string, id string)
  • c is Parent container.
  • text is the text.
  • id is a user specific element id.

Example

tgcomp.Text(p.Main, "Text")

text component