Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include 'Vue.use(Tooltip);' step to instructions. #3

Closed
humanismusic opened this issue May 9, 2017 · 4 comments
Closed

Include 'Vue.use(Tooltip);' step to instructions. #3

humanismusic opened this issue May 9, 2017 · 4 comments

Comments

@humanismusic
Copy link

humanismusic commented May 9, 2017

There's no instructions stating a user must register the directive using:

import Tooltip from 'vue-directive-tooltip';
Vue.use(Tooltip);

Please include this. (And thanks for making this!).

@hekigan
Copy link
Owner

hekigan commented May 9, 2017

Hello!

You are completely right.
I did not put it in as for the ES5 version, it is automatically done
https://github.com/hekigan/vue-directive-tooltip/blob/master/src/index.js#L6

But for ES6, it is another matter. And so, yes I will add it now :)

@hekigan
Copy link
Owner

hekigan commented May 9, 2017

Done:
7144373

@hekigan hekigan closed this as completed May 9, 2017
@humanismusic
Copy link
Author

humanismusic commented May 9, 2017

Nice one!

I see that it only borrows some of the options from Popper.js. Is there a plan to extend it to include stuff like closing only click away etc? Or is that outside the scope of what this should do?

Basically I'm looking to create a popup menu similar to this: https://cdn.dribbble.com/users/79601/screenshots/2254492/configurator-popup.png and wondering if I should lean on this library or create one from scratch.

@hekigan
Copy link
Owner

hekigan commented May 10, 2017

There is a plan to expand the options.
To be honest, I did this implementation because I needed it for a personal project and did not have time to implement more than the basic stuff.

It should not be difficult to add to it, but I want to be sure that the usage will be simple and in line with most Vue directives mechanics.

Now, after looking at your screenshot, what you need would some kind of target property to fill the content of the tooltip. Am I right? Or did you think of a different kind of implementation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants