primevue-mirror/doc/tooltip/pt/PTDoc.vue

65 lines
1.4 KiB
Vue
Raw Normal View History

2023-08-07 13:14:58 +00:00
<template>
<DocSectionText v-bind="$attrs"> </DocSectionText>
<div class="card flex flex-wrap justify-content-center gap-2">
<InputText
v-tooltip.right="{
value: `PrimeVue Rocks!`,
pt: {
text: 'bg-primary'
}
}"
type="text"
placeholder="PassThrough Tooltip"
/>
</div>
<DocSectionCode :code="code" />
</template>
<script>
export default {
data() {
return {
code: {
basic: `
<InputText
v-tooltip.right="{
value: \`PrimeVue Rocks!\`,
pt: {
text: 'bg-primary'
}
}"
type="text"
placeholder="PassThrough Tooltip"
/>`,
options: `
<div class="card flex flex-wrap justify-content-center gap-2">
<InputText
v-tooltip.right="{
value: \`PrimeVue Rocks!\`,
pt: {
text: 'bg-primary'
}
}"
type="text"
placeholder="PassThrough Tooltip"
/>
</div>`,
composition: `
<div class="card flex flex-wrap justify-content-center gap-2">
<InputText
v-tooltip.right="{
value: \`PrimeVue Rocks!\`,
pt: {
text: 'bg-primary'
}
}"
type="text"
placeholder="PassThrough Tooltip"
/>
</div>`
}
};
}
};
</script>