Class IFrame
Define an IFrame block to be displayed into a JBlocks.
- Defined in: jblocks.block.iframe.js
- Extends Icon
Constructor Attributes | Constructor Name and Description |
---|---|
IFrame()
An IFrame block displays an HTML iframe as part of the block content. |
Method Summary
Class Detail
IFrame()
An IFrame block displays an HTML iframe as part of the block content.
The constructor should not be invoked directly but JBlocks#newBlock or JBlocks#addNewBlock should be used instead.
Method Detail
-
init(layout, options)Initializes an IFrame block. The method is invoked by the jBlocks core and must never be called directly.
- Parameters:
- {Object} layout Optional
- see Block#init.
- {Object} options Optional
- in addition to base class options Block#init:
- {Array} options.src Optional
- the source URL for the iframe.
- {Object} options.data Optional
- optional data that can be passed to opened page if it is supporting jBlocks. See JBlocks.getFrameData for how to get the passed data.
- {Boolean} options.syncViewportSize Optional, Default: false
- if set to true and the opened URL is a jBlocks-managed page, this jBlocks viewport size will match the block size.