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.

有帮助吗?

解决方案

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

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top