X4 Produktdokumentation

RichText

<RichText> controls can be used to provide users of a Web App with a WYSIWYG interface for editing HTML content.

Instructions for use

A <RichText> control is created with the <RichText> element.

<RichText>
...
</RichText>

<RichText> controls can be used in all available layout types. For more information, see Layouts.

Attribute

Note:

There are a number of default attributes that can be set for all controls. For more information about the default attributes, see Default attributes.

In addition to the default attributes, you can define the following attributes for <RichText> controls.:

Attribute

Description

displayName

Content to be edited using the rich text editing controls.

The value you specify in the displayName attribute is displayed only if the value attribute is empty.

  • Data binding possible

Possible values:

Any string

readonly

Specifies whether the rich text editing controls are displayed in the Web App.

  • Data binding (Boolean) is possible

Possible values:

  • true: The rich text editing controls are not displayed.

  • false (default) Rich text editing controls are displayed and can be opened with a click of the mouse.

value

Content to be edited with the rich text controls.

This attribute is mandatory but does not need to contain a value.

If you do not specify a value or a value for displayName, the Web App displays a blank area for which you can click to display the rich text editing controls.

  • Data binding possible

Possible values:

Any string

The following rich text editing controls are displayed:

image-20240821-075656.png

Export rich text content as PDF

If you add the <PDFExport> element within the <RichText> control, the image-20260312-091459.png button is also displayed. Use this button to download the contents as a PDF file.