| toolkit.HTMLPositionedElement {shinylight} | R Documentation |
JavaScript class: A monkey-patched HTMLElement with some extra methods.
Description
Certain elements returned by Toolkit methods are Positioned Elements. It is necessary for elements in some places in the document to be Positioned Elements for the document resizing and formatting to work.
If you have an HTML element that is not a Positioned Element that you want
to add to a place where only Positioned Elements are required, wrap it in
toolkit.scrollingWrapper or toolkit.nonScrollingWrapper.
Properties
- setSize
functionSets the position of the element on the document in pixels, with parameters for left, top, width and height in that order.- getSize
functionReturns an object with membersleft,top,widthandheightfor the position of the element.- hide
functionMakes the element invisible and non-interactive- show
functionmakes the element visible and (potentially) interactive