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
you can use a combination of these keywords: <strong>click, hover, focus</strong>
119
151
</p>
120
-
121
-
<h4>Visibility</h4>
122
152
<p>
123
-
In case you need to hide a tooltip, you can use the <bclass="tooltip-target" v-tooltip.top="{ content: 'change the visibility', visible: visibility }">visible</b> option
153
+
Click <spanclass="tooltip-target" v-tooltip.click="{ content: 'show on click' }">to see the text</span>
124
154
</p>
125
155
<p>
126
-
<code><span v-tooltip="{ content: 'change the visibility', visible: <spanv-text="visibility"></span> }"...</code>
156
+
<code><span v-tooltip.click="{ content: 'Show on: click' }"...</code><br>
157
+
<code><span v-tooltip.focus.hover="{ content: 'Show on: focus, hover' }"...</code>
127
158
</p>
159
+
<p>
160
+
Click to open AND close <spanclass="tooltip-target" v-tooltip.click.manual="{ content: 'show/hide on click' }">(here is the tooltip)</span>
161
+
<code><span v-tooltip.click.manual="{ content: 'Show on click' }"...</code>
162
+
</p>
163
+
</section>
164
+
165
+
<section>
166
+
<h3>Options</h3>
167
+
168
+
<h4>Visibility</h4>
128
169
<p>
129
170
<button@click="visibility = !visibility">
130
171
<spanv-if="visibility">hide</span>
131
172
<spanv-else>show</span>
132
173
tooltip
133
174
</button>
134
175
</p>
176
+
<p>
177
+
In case you need to toggle a tooltip's visibility, you can use the <bclass="tooltip-target" v-tooltip.top="{ content: 'change the visibility', visible: visibility }">visible</b> option
178
+
</p>
179
+
<p>
180
+
<code><span v-tooltip="{ content: 'change the visibility', visible: <spanv-text="visibility"></span> }"...</code>
181
+
</p>
182
+
<p>
183
+
Toggle visibility AND disable triggers (hover, click, focus) <bclass="tooltip-target" v-tooltip.top.notrigger="{ content: 'change the visibility', visible: visibility }">visible</b> option
184
+
</p>
185
+
<p>
186
+
<code><span v-tooltip.notrigger="{ content: 'change the visibility', visible: <spanv-text="visibility"></span> }"...</code>
187
+
</p>
188
+
189
+
<h4>Tooltip offset</h4>
190
+
<p>
191
+
To change the offset of the tooltip relative to it's element:
0 commit comments