Layer 231
TextButton
A button inline in rich text.
constructor
textButton#afc79cd6 flags:# text:RichText type:InlineButtonType style:flags.0?RichButtonStyle = RichText;
Parameters
| Name | Type | Description |
|---|---|---|
| Text | RichText | Button label |
| Type | InlineButtonType | What the button does when pressed |
| Style | flags.0?RichButtonStyle | Button style |
Returns
RichTextGogram Example
// Creating TextButton constructor obj := &tg.TextButton{ Text: &tg.TextAnchor{}, Type: &tg.InlineButtonTypeBuy{}, // Optional fields: // Style: &tg.RichButtonStyleObj{}, }