Implement a Descriptive Text Element
A Descriptive Text survey element displays a long piece of text. You can use this element to add introductions, disclaimers, or other explanatory texts to your survey. This demo shows how to implement a custom Descriptive Text question type for Survey Creator in Angular and React applications.
A Descriptive Text question type contains the following two custom properties. All other properties are inherited from the Question
class.
caption
:String
A message displayed by the question type.textSize
:"small"
|"medium"
|"large"
The size of the text. Text sizes correspond to HTML heading levels as follows:Text size Heading "large"
<h2>
"medium"
<h3>
"small"
<h4>
This demo uses comments in code to guide you through the implementation. If you need more detailed explanations, please refer to help topics about third-party component integration listed below. They cover the same steps because the integration process is very similar to the process of custom question type implementation.