You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`open()` opens the tooltip programatically. All of the function arguments are optional
73
+
#### Methods
74
+
75
+
:::info
76
+
77
+
The imperative methods <b>can</b> be applied alongside regular tooltip usage. For example, you could use just `close()` to close a regular tooltip after an API request is finished.
78
+
79
+
:::
80
+
81
+
-`open()` opens the tooltip programatically. All of the arguments are optional
74
82
-`anchorSelect` overrides the selector currently in use. Ideally, it should match only one element (e.g. `#some-element`)
75
83
-`position` overrides the tooltip position. Behaves the same way as the `position` tooltip prop
76
84
-`place` overrides the tooltip placement relative to the anchor. Behaves the same was the `place` tooltip prop
77
85
-`content` overrides the tooltip content
78
86
-`close()` closes the tooltip programatically
79
87
88
+
#### Internal state
89
+
80
90
:::note
81
91
82
92
These are read-only. Updating their values has no effect on the tooltip.
@@ -87,12 +97,6 @@ These are read-only. Updating their values has no effect on the tooltip.
87
97
-`place` is the current tooltip placement relative to the anchor element. Can differ from the `place` tooltip prop if the tooltip is close to the edges of its container
88
98
-`isOpen` indicates whether the tooltip is currently being shown or not
89
99
90
-
:::info
91
-
92
-
The imperative methods <b>can</b> be applied alongside regular tooltip usage. For example, you could use just `close()` to close a regular tooltip after an API request is finished.
0 commit comments