Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Set global options in Javascript

Hi,

How can I set some global options for Fresco so that I don't have to bloat up my markup by including them on every link?

Is there a Javascript API function for setting options? I only see documentation for defining options in the show() function, but I don't want to actually show the lightbox - just set the options for all links.

Thanks.

Comments

  • You could create a skin and set it as the default, it can contain options, or extend Fresco.Skins.base itself with options.

    $.extend(Fresco.Skins.base, {
      ui: 'inside'
    });
    
  • Thanks.

    I think the default skin is named 'fresco' though?

    This didn't work for me...

    $.extend(Fresco.Skins.base, {
      ui: 'inside'
    });
    

    ...but this did...

    $.extend(Fresco.Skins.fresco, {
      ui: 'inside'
    });
    
Sign In or Register to comment.