Question

The fancybox2 docs for the API call open() says

$.fancybox.open( [group], [options] )

However the docs go into detail about [ group ] and say nothing about the format expected for the [ options ]

Furthermore the options seem to be ignored.

When I use

$.fancybox.open([{ href : '#popup_panel' }], [ { 'title' : 'Title Two', 'minWidth' : 500 }] );

or

$.fancybox.open([{ href : '#popup_panel' }], [ { title : 'Title Two', minWidth : 500 }] );

Fancybox seems to ignore the options... it opens, but there is no title and the minWidth is ignored.

I'm using v2.1.5 if the fancybox javascript.

Was it helpful?

Solution

The fancybox documentation is wrong; options go inside the [group] apparently:

$.fancybox.open([{ href : '#popup_panel', title : 'Title Two', minWidth : 500 }], [] );

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top