New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

handy-tooltip

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handy-tooltip

A handy & useful tooltip that can easily be used with a simple API!!

latest
Source
npmnpm
Version
1.0.14
Version published
Weekly downloads
14
27.27%
Maintainers
1
Weekly downloads
 
Created
Source

Handy-Tooltip

A very simple & useful toolkit that can be used easily with very simple API. Screenshots below.

If you're reading on npmjs website, please visit GitHub page for better documentation!!

npm version

Screenshots

alt text alt text

These screenshots are from React-Instagram-clone-2.0!!

Requirements

  • jQuery

Usage

  • First install the package with npm or Yarn.

    npm install handy-tooltip
    

    or

    yarn add handy-tooltip
    
  • Create a div with id hoverdiv.

    <div id='hoverdiv'></div>
    
  • Go to handy-tooltip.css & copy everything of it into your stylesheet.

  • And here comes the fun part.

    import HandyTooltip from 'handy-notification'
    HandyTooltip({
        value: "Like",            // Message to be displayed
        selector: $('.like_btn')  // selector you want tooltip of
    })
    

You can also work with attributes.

<a href='#' class='link' data-tooltip='Link!' >I am a cool link</a>
import HandyTooltip from 'handy-notification'
HandyTooltip({
    selector: $('.link')  // selector you want tooltip of
})

If you think Hoverdiv is not at your desired position, see the API.

API

HandyTooltip(options:Object)
options = {
    value,
    selector,
    extraTop,
    extraLeft
}
value
This will be the message.
selector
Selector you want to show tooltip of (NOTE: Not availabe to jQuery plugins).
extraTop
If hoverdiv is not at your desired position, adjust this property for top position.
extraLeft
If hoverdiv is not at your desired position, adjust this property for left position.

Contribute

Show your support by 🌟 the project!!

Feel free to contribute!!

Thanks for reading!!

Keywords

handy

FAQs

Package last updated on 03 Mar 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts