-
-
Save selbekk/f78608698c206d7437fd to your computer and use it in GitHub Desktop.
iframe part
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---------------- | |
// 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