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'


  1. sourceNode


    Type: NodeProxy

  2. renderer


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

    It is advised not to use iframes inside views through createInnerJsonMl as it can lead to some known issues