Tooltip

less than 1 minute read

References

TypeScript

import { Components } from "gd-sprest-bs";

// Create the tooltip
let el = document.querySelector("#tooltip");
let tooltip = Components.Tooltip({
    el: el,
    text: "Tooltip Demo"
    options: {
        html: true,
        title: "My Tooltip",
    }
});

React

import * as React from "react";
import { Tooltip } from "gd-sprest-bsx";

export class IDemo extends React.Component {
    // Render the component
    render() {
        return (
            <Tooltip
                text="Tooltip"
                options=
            />
        );
    }
}

VueJS

<template>
    <Tooltip text="Tooltip" v-bind:options="options" />
</template>

<script>
import { Tooltip } from "gd-sprest-bs-vue";
export default {
    components: { Tooltip },
    data() {
        return {
            options: {
                html: true,
                title: "My Title"
            }
        };
    }
}
</script>

Code Playground