clu3 / bootstro.js

Tiny JS library using bootstrap's popovers to help guide your users around your website
http://clu3.github.io/bootstro.js/
MIT License
1.33k stars 235 forks source link

Steps for list item in dropdowns? #49

Open paulcanning opened 10 years ago

paulcanning commented 10 years ago

Is there anyway to allow bootstro to show popovers for items in button dropdowns?

I did tied by targetting the

  • then the inside the
  • but it simply didn't do anything.

  • DaSchTour commented 10 years ago

    bootstro only applies on items that are currently displayed. You might add some javascript to open the dropdown before starting bootstro and closing it when bootsro is finished. This would be a fast workaround. Handling this inside bootstro might be a bit more complicated.

    clu3 commented 10 years ago

    @paulcanning yes please workaround like @DaSchTour described. And that showing dropdown can be done in .onStep() function. It's not really relavent to add this to bootstro. Best

    DaSchTour commented 10 years ago

    I thought a bit about this problem, and it turned out, that .onStep functions has some issues

    1. It's badly documented and I have no real idea how to use it
    2. You have to know exactly the steps that are done, this means that when an element is missing my action might not be triggered
    3. We would need something like a onStepIn and onStepOut to trigger some javascript before the step is done and before leaving the step
    4. I have the impression, that onStep needs the number index, which I also may not know when building something with json