Skip to content

Instantly share code, notes, and snippets.

@selbekk
Created February 26, 2016 23:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save selbekk/f78608698c206d7437fd to your computer and use it in GitHub Desktop.
Save selbekk/f78608698c206d7437fd to your computer and use it in GitHub Desktop.
iframe part
// ----------------
// iframe-flow.html
// ----------------
<div class="embed-responsive iframe-container mod-full-height">
<iframe data-th-src="${url}"></iframe>
</div>
// --------------
// iframe-flow.js
// --------------
exports.get = function() {
var model = {
url: portal.getComponent().config.url
};
return {
body: thymeleaf.render(resolve('iframe-flow.html'), model)
};
};
// ---------------
// iframe-flow.xml
// ---------------
<part>
<display-name>Iframe flow page</display-name>
<config>
<input name="url" type="TextLine">
<label>Iframe URL</label>
<occurrences minimum="0" maximum="1"/>
</input>
</config>
</part>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment