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

function Sets the position of the element on the document in pixels, with parameters for left, top, width and height in that order.

getSize

function Returns an object with members left, top, width and height for the position of the element.

hide

function Makes the element invisible and non-interactive

show

function makes the element visible and (potentially) interactive


[Package shinylight version 1.2 Index]