spx-target

The spx-target attribute facilitates targeted replacements on specified elements within the DOM. This attribute can be applied to any element and accepts either a selector or a boolean value. When the spx-target attribute is applied to link elements and the value is recognized as a selector string or array list of string[] selectors, SPX will apply replacements to the specified elements, and override fragments defined on connection. When a boolean value of true or false is provided as the directive value, it informs SPX whether the respective node (element) should be included or excluded from replacement operations during navigations.

Accepts

Examples

The following examples attempt to showcase spx-target usage.