PlainText UDR
The PlainText UDR
is used to create a plain text element. There are elements to set if the text should be bold or italic.
You can use the following APL code to create text with both bold and italic styles
PlainText myText = udrCreate(PlainText);
myText.value = "This text has the styles bold and italic.";
myText.italic = true;
myText.bold = true;
The following fields are included in the PlainText UDR
:
Field | Description |
---|---|
attributes (map<string,string>) | This field may contain extra attributes to be added. |
bold (boolean) | This field may contain a boolean if the text should be bold. |
cssClasses (list<string>) | This field may contain a list of extra values added to class attribute. This is typically used to style the component. Please read more on Bootstrap. |
id (string) | This field may contain the id of the component |
italic (boolean) | This field may contain a boolean if the text should be italic. |
preFormatted (boolean) | This field may contain a boolean if the text is already formatted. |
value (string) | This field contain the text. |