Add parameters to v-tooltip directive
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
To make it more clear which values belong to a tooltip, we should use a parameter object literal for the Vue directive.
The change would be
- bind(el) {
- $(el).tooltip();
- },
+ bind(el, binding) {
+ $(el).tooltip(binding.value);
+ },
Instead of
<button
v-tooltip
:title="__('Here comes the text')"
data-placement="top"
>
we can then do
<button
v-tooltip="{ title: __('Here comes the text'), placement: 'top' }"
>
Edited by 🤖 GitLab Bot 🤖