Add kwarg to tooltip macro to allow extra classes
This commit is contained in:
parent
51f1261db0
commit
eac41d140c
@ -1,8 +1,8 @@
|
|||||||
{% from "components/icon.html" import Icon %}
|
{% from "components/icon.html" import Icon %}
|
||||||
|
|
||||||
{% macro Tooltip(message,title='Help') -%}
|
{% macro Tooltip(message,title='Help', classes="") %}
|
||||||
|
|
||||||
<button type="button" tabindex="0" class="icon-tooltip" v-tooltip.top="{content: '{{message}}', container: false}">
|
<button type="button" tabindex="0" class="icon-tooltip {{classes}}" v-tooltip.top="{content: '{{message}}', container: false}">
|
||||||
{{ Icon('help') }}<span>{{ title }}</span>
|
{{ Icon('help') }}<span>{{ title }}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user