Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TooltipFixtures = gx.Fixtures[TooltipProps]{ "Top": {Content: "Add to library", Children: gx.El("button", gx.Attrs{{Key: "type", Value: "button"}}, gx.Text("Hover me"))}, "Right": {Content: "Add to library", Side: Right, Children: gx.El("button", gx.Attrs{{Key: "type", Value: "button"}}, gx.Text("Hover me"))}, "Bottom": {Content: "Add to library", Side: Bottom, Children: gx.El("button", gx.Attrs{{Key: "type", Value: "button"}}, gx.Text("Hover me"))}, "Left": {Content: "Add to library", Side: Left, Children: gx.El("button", gx.Attrs{{Key: "type", Value: "button"}}, gx.Text("Hover me"))}, }
Functions ¶
func Tooltip ¶
func Tooltip(p TooltipProps) gx.Node
Types ¶
type TooltipProps ¶
type TooltipProps struct {
// Content is the text of the tooltip. An empty value renders no tooltip.
Content string
// Side sets the edge of the trigger that the tooltip appears on: Top, Bottom, Left or Right.
Side Side
// Class adds classes to the root element.
Class string
// Children is the element that shows the tooltip on hover or on keyboard focus.
Children gx.Node
// Attrs adds HTML attributes to the root element.
Attrs gx.Attrs
}
Click to show internal directories.
Click to hide internal directories.