A tooltip is a small, interactive, textual hint for main elements that act as a helper to a specific item.
XelaTooltip(
text: "Earth is the third planet from the Sun and the only astronomical object known to harbor life. According to radiometric dating estimation and other evidence, Earth formed over 4.5 billion years ago.",
tooltipAlign: .Top,
arrowAlign: .Center,
textColor: Color(.white),
backgroundColor: Color(xelaColor: .Green2)
)
Name | Type | Default Value | Required | Description |
---|---|---|---|---|
text | String | - | YES | Tooltip text string |
tooltipAlign | XelaTooltipAlign | .Top | NO | Tooltip align (.Left, .Right, .Top, .Bottom) |
arrowAlign | XelaTooltipArrowAlign | .Leading | NO | Arrow align (.Leading, .Center, .Trailing) |
textColor | Color | Color(.white) | NO | Tooltip text color |
backgroundColor | Color | Color(xelaColor: .Gray3) | NO | Tooltip background color |