2023-02-28 08:29:30 +00:00
|
|
|
<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: {
|
2023-09-22 12:54:14 +00:00
|
|
|
basic: `
|
|
|
|
<InputText v-tooltip.focus="'Enter your username'" type="text" placeholder="Focus" />
|
2023-10-15 09:38:39 +00:00
|
|
|
<Button v-tooltip="'Click to proceed'" type="button" label="Save" icon="pi pi-check" />
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
options: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<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>
|
2023-10-15 09:38:39 +00:00
|
|
|
</template>
|
|
|
|
`,
|
2023-09-22 12:54:14 +00:00
|
|
|
composition: `
|
|
|
|
<template>
|
2023-02-28 08:29:30 +00:00
|
|
|
<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>
|