v-simple-tooltip

1.3.0 • Public • Published

Installation

npm install --save v-simple-tooltip

Usage

<template>
  <table>
    <tr>
      <td @mouseover="show_tooltip = true"
          @mouseleave="show_tooltip = false">
            
        Some text

        <VSimpleTooltip
          v-if="show_tooltip"
          :content="tooltip_content"
          :style="{
            'text-align': 'center',
            'color': 'red'
          }"
        ></VSimpleTooltip>
      </td>
    </tr>
  </table>
</template>

<script>
  import VSimpleTooltip from 'v-simple-tooltip';
        
  export default {
    name: 'SomeExampleComponent',
    components: {VSimpleTooltip},
    data() {
      return {
        show_tooltip: false,
        tooltip_content: '<b>HTML-compatible content</b><br>of tooltip'
      }
    }
  }
</script>

LICENCE MIT - Created by Sergey Tulaeff (@tulaeff)

Readme

Keywords

Package Sidebar

Install

npm i v-simple-tooltip

Weekly Downloads

6

Version

1.3.0

License

MIT

Unpacked Size

4.43 kB

Total Files

3

Last publish

Collaborators

  • tulaeff