"opacity", "tabindex", "z-index", "tooltip", and "visibility" properties of View

"opacity" property

The "opacity" property (Opacity constant) of the float64 type sets the transparency of the View. Valid values are from 0 to 1.Where 1 - View is fully opaque, 0 - fully transparent.

You can get the value of this property using the function

func GetOpacity(view View, subviewID ...string) float64

"tabindex" property

The "tabindex" int property (TabIndex constant) determines whether this View should participate in sequential navigationthroughout the page using the keyboard and in what order. It can take one of the following types of values:

  • negative value - View can be selected with the mouse or touch, but does not participate in sequential navigation;
  • 0 - View can be selected and reached using sequential navigation, the order of navigation is determined by the browser (usually in order of addition);
  • positive value - the element will be reached (and selected) using sequential navigation, and navigation is performed by ascending "tabindex" value.If multiple elements contain the same "tabindex" value, navigation is done in the order in which they were added.

You can get the value of this property using the function

func GetTabIndex(viewView, subviewID ...string) int

"z-index" property

The "z-index" property (constant ZIndex) of type int defines the position of the element and its children along the z-axis.In the case of overlapping elements, this value determines the stacking order. In general, the elementshigher z-indexes overlap elements with lower.

You can get the value of this property using the function

func GetZIndex(view View, subviewID ...string) int

"visibility" property

The "visibility" int property (constant Visibility) specifies the visibility of the View. Valid values

Value Constant Name Visibility
0 Visible "visible" View is visible. Default value.
1 Invisible "invisible" View is invisible but takes up space.
2 Gone "gone" View is invisible and does not take up space.

You can get the value of this property using the function

func GetVisibility(view View, subviewID ...string) int

"tooltip" property

The "tooltip" string property (Tooltip constant) specifies the tooltip text.Tooltip pops up when hovering the mouse cursor.You can use html tags when formatting the tooltip text.