CTATTextField - CMUCTAT/CTAT GitHub Wiki
This component is meant to display non-interactive text delivered by the tutor; it supports arbitrary HTML. It is not intended to be a component that students edit. The text displayed can be static or set dynamically using mass production or tutor-performed steps.
Forcing a CTATTextField to be student editable is discouraged because of the potential havoc a student could inflict on the tutor.
<div id="problem_statement" class="CTATTextField">Find the least common denominator.</div>-
id: Required. The name of the component, must be a valid html id name. -
class: Required. The class list, must includeCTATTextFieldand no other CTAT<component> classes. -
data-ctat-enabled:trueorfalse. Default isfalse. Controls if the component will accept student interaction. -
data-ctat-tutor:trueorfalse. Default istrue. Controls if direct actions on the component trigger grading. -
data-ctat-show-feedback:trueorfalse. Default istrueunlessdata-ctat-tutor="false". Determines if grading feedback is shown on the component. -
data-ctat-show-hint-highlight:trueorfalse. Default istrue. Determines if hint highlighting is shown on the component. -
data-ctat-disable-on-correct:trueorfalse. Default istrue. Determines if the component becomes locked when it is graded as correct.
This component is forced to be disabled initially.
In addition to the common Actions listed in Often Used TPAs this component supports the following actions:
| Action | Input | Notes |
|---|---|---|
| UpdateTextArea | a string | Modifies the text |
| UpdateTextField | a string | Modifies the text |
.CTATTextField {}Example for mass producing the text for a CTATTextField :
<div id="problem_statement" class="CTATTextField">%(problem-text)%</div>