سؤال

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