gardr-plugin-host-options

0.1.0 • Public • Published

Gardr Options Plugin (Host)

Gardr plugin to pass options object from host into ext.

Install

npm install gardr-plugin-host-options --save

Bundle

In your host bundle file:

    var gardrHost = require('gardr-host');
    var options = require('gardr-plugin-host-options');
 
    gardrHost.plugin(options);
 
    module.exports = gardrHost;

Options

sendOptions - boolean, enables/disables passing options into ext iframe.

Example

var gardr = gardrHost(...);
gardr.queue('ad', {
    url: 'my-adserver.com/ad.js',
    container: 'ad',
    sendOptions: true,
    ...
});

Usage

Options (except for circular referencing objects, such as DOM elements) will be available in ext iframe under gardr.params.options

Readme

Keywords

Package Sidebar

Install

npm i gardr-plugin-host-options

Weekly Downloads

0

Version

0.1.0

License

MIT

Last publish

Collaborators

  • kjarmicki