StatusQuery

Type: XPathQuery

Sets a status for the node.

An XPath query that determines which status component should be shown for a node by referencing the 'id' of the registered status. See registerNodeStatus for a detailed example on how to use these APIs together.

Note: when writing any XPath query, take the performance of your query into consideration.\ There are (usually) multiple ways of expressing the same thing, but with significant differences in (runtime query execution) performance.

For example: configureProperties('self::topic[title="review"]', { statusQuery: 'review' }) versus configureProperties('self::topic', { statusQuery: 'title eq "review" then "review" else ''})

The former is much slower than the latter. For more details about these performance concerns, check out this blog post written by our XPath (engine) developer: https://www.fontoxml.com/blog/make-your-editor-fast-optimize-your-xpaths/

Applies to: