puppeteer/new-docs/puppeteer.protocol.runtime.custompreview.md
2020-07-13 14:01:35 +01:00

1.0 KiB

Home > puppeteer > Protocol > Runtime > CustomPreview

Protocol.Runtime.CustomPreview interface

Signature:

export interface CustomPreview 

Properties

Property Type Description
bodyGetterId RemoteObjectId If formatter returns true as a result of formatter.hasBody call then bodyGetterId will contain RemoteObjectId for the function that returns result of formatter.body(object, config) call. The result value is json ML array.
header string The JSON-stringified result of formatter.header(object, config) call. It contains json ML array that represents RemoteObject.