close

Filter

loading table of contents...

Headless Server Developer Manual / Version 2110

Table Of Contents
5.1.7.2.2 Context Handlers

Context Handlers (not to be confused with the context type) define a modification on the context stack, whenever the rule of the corresponding event matcher applies. There are currently two styles of context handlers:

          !Push
          # or
          !ReplacePush
        
PropertyDescription
contextNameThe name of the context to install on top of the stack.
replacementName For !ReplacePush context handler only! The name of the context to replace the current context with.

Table 5.4. Available properties for !Push and !ReplacePush.


Example:

          contexts:
            - !Context
              name: headline
              defaultHandler:
                !Handler
                eventMatcher: ...
                contextHandler: !Push { writeCharacters: true }
                ...
        

Search Results

Table Of Contents
warning

Your Internet Explorer is no longer supported.

Please use Mozilla Firefox, Google Chrome, or Microsoft Edge.