mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Merged new Docs and Demos
This commit is contained in:
parent
296cc217fb
commit
dfcc8ef4e7
1235 changed files with 130757 additions and 122640 deletions
38
doc/tooltip/EventDoc.vue
Normal file
38
doc/tooltip/EventDoc.vue
Normal file
|
@ -0,0 +1,38 @@
|
|||
<template>
|
||||
<DocSectionText v-bind="$attrs">
|
||||
<p>Tooltip is configured via modifiers that can be chained. Also, tooltip gets displayed on hover event by default, use <i>focus</i> modifier as alternative to set.</p>
|
||||
</DocSectionText>
|
||||
<div class="card flex flex-wrap justify-content-center gap-2">
|
||||
<InputText v-tooltip.focus="'Enter your username'" type="text" placeholder="Focus" />
|
||||
<Button v-tooltip="'Click to proceed'" type="button" label="Save" icon="pi pi-check" />
|
||||
</div>
|
||||
<DocSectionCode :code="code" />
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
code: {
|
||||
basic: `
|
||||
<InputText v-tooltip.focus="'Enter your username'" type="text" placeholder="Focus" />
|
||||
<Button v-tooltip="'Click to proceed'" type="button" label="Save" icon="pi pi-check" />`,
|
||||
options: `
|
||||
<template>
|
||||
<div class="card flex flex-wrap justify-content-center gap-2">
|
||||
<InputText v-tooltip.focus="'Enter your username'" type="text" placeholder="Focus" />
|
||||
<Button v-tooltip="'Click to proceed'" type="button" label="Save" icon="pi pi-check" />
|
||||
</div>
|
||||
</template>`,
|
||||
composition: `
|
||||
<template>
|
||||
<div class="card flex flex-wrap justify-content-center gap-2">
|
||||
<InputText v-tooltip.focus="'Enter your username'" type="text" placeholder="Focus" />
|
||||
<Button v-tooltip="'Click to proceed'" type="button" label="Save" icon="pi pi-check" />
|
||||
</div>
|
||||
</template>`
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue