Type: Function

The createInnerJsonMl callback can be used to create the JsonML fragment when the node is rendered.

configureAsObject(sxModule, 'self::pdf-reference', 'PDF reference', {
    createInnerJsonMl: (sourceNode) => [
            class: 'custom-pdf-renderer-template',
        'Click to view PDF'


# Name Type Description
1. sourceNode NodeProxy
2. renderer JsonRenderer

The renderer provides ways to render other nodes in your document inside of an object or widget.

Was this page helpful?