Confirmation Box API

Last modified by Vincent Massol on 2026/11/30 16:49

A confirmation box is created with the constructor, while textContentFormat tells callers whether to escape the text they pass.

Reference

Constructor

The documentation of the constructor can be found in the corresponding legacy documentation page.

XWiki 17.10.9+, 18.4.0+

textContentFormat()

Indicates how the textContent parameter is interpreted by XWiki.widgets.ConfirmationBox.
Callers can check for the presence of this method to decide whether to escape their input:

  • When this method is available, the textContent parameter is treated as plain text and must not be escaped.
  • When this method is missing (before 18.4.0RC1/17.10.9), the textContent parameter is interpreted as HTML and may need to be escaped.
    The returned value is always the "plain" string.

Get Connected