-
Notifications
You must be signed in to change notification settings - Fork 7
Embedding RCAP in an iframe
Shane Porter edited this page Aug 24, 2016
·
1 revision
When the RCAP viewer starts, the grid is sized to the screen size. This is not convenient for embedding in iframes, and results in ugly scrollbars.
RCAP's grid width can be set using the width query string parameter:
rcap.html?notebook=29ac441c0e48a9cdccc6d954505b85d3&width=800&align=left
Note that by default, RCAP's grid is centered in the window, so the align parameter can also be set to 'left'.
Currently, the height of the RCAP grid is fixed. A workaround for this is to specify a height attribute and a scrolling attribute with a value of 'no' on the containing iframe element.
<iframe src="http://127.0.0.1:8080/shared.R/rcloud.rcap/rcap.html?notebook=29ac441c0e48a9cdccc6d954505b85d3&width=800&height=600&align=left" width="820" height="600" scrolling="no"></iframe>
RCAP - RCloud powered dashboards and websites