mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 08:52:34 +00:00
Tooltip PT tab added
This commit is contained in:
parent
8e7a7be794
commit
1c5eea697a
5 changed files with 117 additions and 2 deletions
64
doc/tooltip/pt/PTDoc.vue
Normal file
64
doc/tooltip/pt/PTDoc.vue
Normal file
|
@ -0,0 +1,64 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue