QuickLook
Documents, images and text
Previews a file. Text is written to a temporary file first. In-app only; check isAvailable.
Properties
isAvailableBooleanFalse in a widget.
Methods
QuickLook.present(path)voidPreviews the file at a path.
- path String required
QuickLook.text(text, name?)voidPreviews a string, written to a temporary .txt file.
- text String required
- name String
Examples
Previewing output
QuickLook.text(JSON.stringify(data, null, 2), "response");