Renders a document_preview component
sample.doc
May 13, 2024 • 0.98MB
Unfortunately, we’re not able to preview this file for you.
ID of the document preview modal
Additional classes to add to the parent.
Active document to display
Active document size
Whether the document preview modal is visible
Optional fallback text shown before the uploaded date when the active document does not define its own file_info_prefix
Text shown for the previous navigation button
Text shown for the next navigation button
Whether users can move between documents. When false, previous/next buttons are hidden and document cycling is disabled
Param name to add in the URL when showing the preview.
If nil, no param is added. If set then id_for_url attr must be present in each document
Documents to display in the preview. Each document may optionally define file_info_prefix, action_info_icon, action_info_text, custom_action_icon, custom_action_label, and custom_action_on_click for document-specific behavior