Add tooltips
parent
f1bd92f01b
commit
fcfeef0770
|
@ -12,7 +12,7 @@
|
||||||
<div class="dock-window" style="backgroundimage: 'url(https://primefaces.org/cdn/primevue/images/dock/window.jpg)'">
|
<div class="dock-window" style="backgroundimage: 'url(https://primefaces.org/cdn/primevue/images/dock/window.jpg)'">
|
||||||
<Dock :model="items" :position="position">
|
<Dock :model="items" :position="position">
|
||||||
<template #itemicon="{ item }">
|
<template #itemicon="{ item }">
|
||||||
<img :alt="item.label" :src="item.icon" style="width: 100%" />
|
<img v-tooltip.top="item.label" :alt="item.label" :src="item.icon" style="width: 100%" />
|
||||||
</template>
|
</template>
|
||||||
</Dock>
|
</Dock>
|
||||||
</div>
|
</div>
|
||||||
|
@ -65,7 +65,7 @@ export default {
|
||||||
basic: `
|
basic: `
|
||||||
<Dock :model="items" :position="position">
|
<Dock :model="items" :position="position">
|
||||||
<template #itemicon="{ item }">
|
<template #itemicon="{ item }">
|
||||||
<img :alt="item.label" :src="item.icon" style="width: 100%" />
|
<img v-tooltip.top="item.label" :alt="item.label" :src="item.icon" style="width: 100%" />
|
||||||
</template>
|
</template>
|
||||||
</Dock>
|
</Dock>
|
||||||
`,
|
`,
|
||||||
|
@ -81,7 +81,7 @@ export default {
|
||||||
<div class="dock-window">
|
<div class="dock-window">
|
||||||
<Dock :model="items" :position="position">
|
<Dock :model="items" :position="position">
|
||||||
<template #itemicon="{ item }">
|
<template #itemicon="{ item }">
|
||||||
<img :alt="item.label" :src="item.icon" style="width: 100%" />
|
<img v-tooltip.top="item.label" :alt="item.label" :src="item.icon" style="width: 100%" />
|
||||||
</template>
|
</template>
|
||||||
</Dock>
|
</Dock>
|
||||||
</div>
|
</div>
|
||||||
|
@ -162,7 +162,7 @@ export default {
|
||||||
<div class="dock-window" style="backgroundimage: 'url(https://primefaces.org/cdn/primevue/images/dock/window.jpg))'">
|
<div class="dock-window" style="backgroundimage: 'url(https://primefaces.org/cdn/primevue/images/dock/window.jpg))'">
|
||||||
<Dock :model="items" :position="position">
|
<Dock :model="items" :position="position">
|
||||||
<template #itemicon="{ item }">
|
<template #itemicon="{ item }">
|
||||||
<img :alt="item.label" :src="item.icon" style="width: 100%" />
|
<img v-tooltip.top="item.label" :alt="item.label" :src="item.icon" style="width: 100%" />
|
||||||
</template>
|
</template>
|
||||||
</Dock>
|
</Dock>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue