Giter Club home page Giter Club logo

electron-tooltip's People

Contributors

ghassanpl avatar mdings avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

electron-tooltip's Issues

Latest version on npm is out of date?

Hi, I believe the latest version released on npm is out of date. electron-tooltip.js does not contain the customContent property, but it is available on this repo.

However, the package.json is the same version, 1.1.4 in both. Can we get this latest version published?

Thanks!

Issue with inner elements

I tried out your plugin but I couldn't get it to be consistent. I have an outter div wrapping an icon. Whenever I move my cursor over the icon the tooltip would disappear. Looking at the code it "looked" ok with mouseenter and mouseleave, but I couldn't figure it out. Here is my HTML.

<div id="LineModeBtn" class="selected" data-tooltip="Line Mode"><i class="ti-line-dotted"></i></div>

electron-tooltip.html not found

Hi,

I'm using vue-cli-plugin-electron-builder and the module is not working.

My App.vue file as an example with following code under the script tag:

const tooltip = require('electron-tooltip')
tooltip()

Error message:

***path deleted***\node_modules\electron\dist\resources\electron.asar\renderer\callbacks-registry.js:47 Uncaught (in promise) Error: ERR_FILE_NOT_FOUND (-6) loading 'file:///***path deleted***/node_modules/electron/dist/resources/electron.asar/renderer/electron-tooltip.html'
    at rejectAndCleanup (***path deleted***\node_modules\electron\dist\resources\electron.asar\browser\navigation-controller.js:72:21)
    at WebContents.failListener (***path deleted***\node_modules\electron\dist\resources\electron.asar\browser\navigation-controller.js:82:11)
    at WebContents.emit (events.js:194:13)

Any ideas or workarounds in mind?

Best regards
David

Can we move the style into a separate page CSS file?

Newbie here.

In the sample code

// example
// in the render process..
const tt = require('electron-tooltip')
tt({
  position: 'bottom',
  width: 200,
  style: {
    backgroundColor: '#f2f3f4',
    borderRadius: '4px'
  }
})

Seems that the tooltip is styled in place in the JS code. Would it be possible to move this into the common CSS file of the page of interest? Something like this

tt({
  position: 'bottom',
  width: 200,
  style: 'thispage.css'
})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.