GithubHelp home page GithubHelp logo

Incomplete Documentation about nspopover HOT 16 OPEN

Sam2243 avatar Sam2243 commented on September 25, 2024
Incomplete Documentation

from nspopover.

Comments (16)

nohros avatar nohros commented on September 25, 2024

The ns-popover-tooltip-custom is a custom theme and is not part of te nsPopover, it was created to show how to create custom themes.

The built-in them for tooltips is the ns-popover-tooltip-theme and that is not described in the documentation properly. I will fix that.

Thanks, for your help.

from nspopover.

avatsaev avatar avatsaev commented on September 25, 2024

Seriously man you need to work on your documentations, how do close popovers from a ng controller programmatically?

from nspopover.

Sam2243 avatar Sam2243 commented on September 25, 2024

avatsaev .. You can call hidePopover method on ng-click like this

<a ng-click="hidePopover();"></a>

from nspopover.

avatsaev avatar avatsaev commented on September 25, 2024

I was trying to hide them from a controller without ng click, because when I open a popover and then another one, I need all previous popovers to disappear and not stand there. Any adivce on how I can achieve that?

from nspopover.

Sam2243 avatar Sam2243 commented on September 25, 2024

You can have a boolean variable in you controller as "isPopoverOpen" which would be set to false initially. Set it to true when the first popover and add a check to not to open the next unless the variable is set to false again :)

from nspopover.

nohros avatar nohros commented on September 25, 2024

A new option "ns-popover-modal" was added to allow popover to be grouped
and displayed separatelly. The basic usage is in the docs page. This
feature is not tested yet and is planed to be available in the next release.

2014-12-15 12:41 GMT-03:00 Sam2243 [email protected]:

You can have a boolean variable in you controller as "isPopoverOpen" which
would be set to false initially. Set it to true when the first popover and
add a check to not to open the next unless the variable is set to false
again :)


Reply to this email directly or view it on GitHub
#31 (comment).

from nspopover.

avatsaev avatar avatsaev commented on September 25, 2024

true - All popover instances will be hidden when this one instance is shown

I've tried ("ns-popover-modal" => "true"), didn't work, the popover isn't showing up at all

from nspopover.

nohros avatar nohros commented on September 25, 2024

Like I said, this feature was not tested yet and we plan to publish on the
next release, which will occur at 20/12/2014.

2014-12-15 12:55 GMT-03:00 Vatsaev Aslan [email protected]:

true - All popover instances will be hidden when this one instance is shown

I've tried it, didn't work at all


Reply to this email directly or view it on GitHub
#31 (comment).

from nspopover.

avatsaev avatar avatsaev commented on September 25, 2024

Noted

from nspopover.

noordawod avatar noordawod commented on September 25, 2024

@Sam2243
Thanks for your issue. In the meantime, would you be interested in filling the gap and contributing documentation, in your spare time of course?

from nspopover.

Sam2243 avatar Sam2243 commented on September 25, 2024

Oh yeah sure I will do it. Let me know where I could add the documentation.

from nspopover.

noordawod avatar noordawod commented on September 25, 2024

@Sam2243
Thanks for your willingness, very heart warming :)
If you're familiar with git, then just submit a pull request with new documentation.
If you're comfortable with any other means, like a simple text editor, just download README.md file and adjust it accordingly. Then send it over to my Email, which you can see on my profile page.

from nspopover.

Sam2243 avatar Sam2243 commented on September 25, 2024

Sure thing. I'll submit a pull request very soon for sure.

from nspopover.

noordawod avatar noordawod commented on September 25, 2024

Splendid! Thanks @Sam2243 for your help.

from nspopover.

danielemesh avatar danielemesh commented on September 25, 2024

What about the implementation of hiding the popover via a controller? (without ng-click)
Any news?
The ns-popover-group doesn't seem to work :(

from nspopover.

jonathanrbowman avatar jonathanrbowman commented on September 25, 2024

Everything seems to be working pretty well for the most part thank you!
I don't see any documentation on taking advantage of the onOpen and onClose callbacks. I've tried attaching a scope-level function to the onOpen attribute using ns-popover-on-open, but for some reason it gets lost in translation during the $parse in the options object.
Anyways, I know I'd find it helpful to have documentation regarding all of the available attributes you can pass it.

from nspopover.

Related Issues (20)

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.