Section author: Jonathon Love
Elements to assign results to (in R)
Overview
This document describes the properties and methods of the results elements:
Table (most commonly used, therefore described in detail)
Image
Group
Array
Preformatted
Html
The values of properties can be accessed using the
$operator. For example, to retrieve the title of an element, one can go:element$titleThe methods of a results elements are called using the
$operator as well. For example:element$setTitle('An awesome title')
Elements
The following properties and methods are common to all results elements:
Property
Description
nameA string specifying the name of the element.
titleA string specifying the title of the element.
visibleWhether the element is visible or not (
trueorfalse, default:true)
statusA string, one of
complete,error,inited,running.
rowKeysA list of ‘keys’.
stateThe state of the element
Method
Description
setStatus(status)Sets the elements’ status; should be one of
complete,error,inited,running.
setVisible(visible=TRUE)Overrides the elements default visibility.
setTitle(title)Sets the element’s title.
setError(message)Sets the element’s status to
error, and assigns the error message.
setState(object)Sets the state object on the element.