Element#
Element base class#
Experiment, position, and identification (Element)#
The experiment session to which this element belongs.  | 
|
Alias for   | 
|
Unique identifier for the element.  | 
|
The page to which this element belongs.  | 
|
The direct parent section of this element's page.  | 
|
String, giving the exact position in the experiment.  | 
|
String, giving the exact position in the experiment.  | 
General utilities (Element)#
List of bootstrap column widths at different screen sizes.  | 
|
Returns a string of column width definitions.  | 
|
Element width  | 
|
Position of the whole element on the page.  | 
|
Font size  | 
|
Returns the name the element container's CSS class.  | 
|
Returns the name of the element's CSS class.  | 
|
Boolean, indicating whether the element is meant to be shown.  | 
|
Conditions that have to be met for the element to be shown.  | 
Development utilities (Element)#
These methods and attributes are most likely to be of interest to you only if you derive your own sections.
  | 
Adds CSS to the element.  | 
A list of tuples, which contain a priority and CSS code.  | 
|
A list of tuples, which contain a priority and an url pointing to CSS code.  | 
|
  | 
Adds Javascript to the element.  | 
A list of tuples, which contain a priority and Javascript.  | 
|
A list of tuples, which contain a priority and an url pointing to JavaScript.  | 
|
  | 
Tells the element that it was added to an experiment.  | 
  | 
Tells the element that it was added to a page.  | 
Hook for computations for preparing an element's web widget.  | 
|
  | 
Renders the element template   | 
Base template for the element, which will be used to hold the rendered element template.  | 
|
The element's specific, inner template.  | 
|
Dictionary of data to be passed on to jinja templates.  | 
|
The element's rendered html code for display on a page.  | 
LabelledElement Attributes and Methods (Element)#
Label to the right of the main element widget.  | 
|
Label to the left of the main element widget.  | 
|
Label above of the main element widget.  | 
|
Label below of the main element widget.  | 
|
Returns the labels in a single, nicely formatted string.  | 
InputElement Attributes and Methods (Element)#
Data (InputElement)#
Dictionary of element data.  | 
|
Information about the element in dictionary form.  | 
|
Subject input to this element.  | 
General utilities (InputElement)#
A   | 
|
Shortcut for accessing the element's corrective hints.  | 
|
Flag, indicating whether corrective hints regarding this element should be shown.  | 
|
Default hint if subject input is missing in force_entry elements.  | 
|
A string or element, serving as prefix.  | 
|
A string or element, serving as suffix.  | 
|
Boolean flag, indicating whether debug mode is enabled and default values should be set.  | 
|
Value to be used as a default in debug mode.  | 
|
Default value of this element.  | 
|
A boolean flag, indicating whether the element is disabled A disabled input element is shown and displays its input value, but subjects cannot enter any data.  | 
|
If True, subjects must fill this element to proceed.  | 
|
Detailed description of this element to be added to the automatically generated codebook  | 
Development utilities (InputElement)#
These methods and attributes are most likely to be of interest to you only if you derive your own sections.
  | 
Sets the   | 
  | 
Method for validation of input to the element.  |