Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new dialog element with the given child nodes. Example: dialog.New(p.New(text.Text("Greetings, one and all!"))) Renders: <dialog><p>Greetings, one and all!</p></dialog>
func RawText ¶
func RawText(str string) *element
RawText Creates a new dialog element with raw text content as unescaped HTML using text.RawText. Example: dialog.RawText("Greetings <em>one and all</em>!") Renders: <dialog>Greetings <em>one and all</em>!</dialog>
func RawTextf ¶
RawTextf Creates a new dialog element with formatted raw text content as unescaped HTML using text.RawTextf. Example: dialog.RawTextf("Hello <em>%s</em>", "World") Renders: <dialog>Hello <em>World</em></dialog>
func Static ¶
func Static(str string) *element
Static Creates a new dialog element with static text content. Example: dialog.Static("Hello World") Renders: <dialog>Hello World</dialog>