toolkit.pages {shinylight} | R Documentation |
JavaScript function: Returns a Positioned Element for displaying controls in tabbed pages.
Description
Only one page will be visible at a time. The returned element
has getData
and setData
methods that take or
return (respectively) an object with keys that are the IDs of the
pages.
Arguments
pageElements |
|
labelTranslations |
|
tabIdPrefix |
|
Value
An element that has the
tabs and the tabs that switch between them. The active tab has
the "active" class. It has the following extra methods:
setData(data)
: data is a dictionary with keys matching the
pageIds. The values are passed to the setData()
functions
of the corresponding elements. Pages without any data (and their
corresponding radio buttons) are summarily disabled. Pages with
data are enabled. reposition()
: sets each page to the same
dimensions as the container and calls each page's
reposition()
method (if it exists).