joyride icon indicating copy to clipboard operation
joyride copied to clipboard

Setting per-item options

Open couraud opened this issue 12 years ago • 3 comments

How do I set a per-item option like nextButton? For example, I would like the final popup to have no button. My code is currently

<li data-id="headerNav1" data-options="nextButton:false">

But this doesn't seem to work. I find that at this point in the code, settings.nextButton is true:

if (settings.nextButton) { ... }

Am I missing something or is this not yet possible?

Thanks

couraud avatar Jan 24 '13 12:01 couraud

I'm also not able to get the nextButton:false option to work via data-options.

blanchardjeremy avatar Feb 04 '13 22:02 blanchardjeremy

I'm afraid it's a bug related to:

  • boolean values (false) inside data-options passed to JavaScript as string values ("false")
  • nextButton not being checked for every tip, but globally

jordisan avatar Feb 12 '13 12:02 jordisan

as a hotfix i replaced line if (settings.nextButton) { to if (txt!="") { So an empty data-text="" will let the button disapear. Not clean, but it works for me in the meantime.

ender1977 avatar Feb 20 '13 20:02 ender1977