mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-27 02:01:40 +00:00
28 lines
588 B
Vue
28 lines
588 B
Vue
<template>
|
|
<div>
|
|
<v-tooltip
|
|
:disabled="tooltip === undefined"
|
|
right
|
|
open-delay="600"
|
|
>
|
|
<template v-slot:activator="{ on, attrs }">
|
|
<span
|
|
style="cursor: text !important;"
|
|
class="white--text"
|
|
v-bind="attrs"
|
|
v-on="on"
|
|
>{{ text }}</span>
|
|
</template>
|
|
<span>{{ tooltip }}</span>
|
|
</v-tooltip>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'TooltippedLabel',
|
|
// eslint-disable-next-line vue/require-prop-types
|
|
props: ['text', 'tooltip'],
|
|
}
|
|
</script>
|