Вопрос

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