Notes

Notes

  • This component does not use a datasource item. It reads ?mode= and ?code= query string parameters to determine which Legito document to display and in what mode.
  • On DOMContentLoaded, the component calls dynamicDocuments.init() (from /assets/markel-documents.js) with configuration specifying view: 'Legito', the Legito API base path (/api/docs), and the target HTML element ID.
  • The component renders an empty container div; all document content is populated client-side by the markel-documents library.
  • A <style> block is injected at head top setting the viewer to height: 100vh for full-viewport display.
  • The viewerRelativePath config option is set to document-viewer, controlling how sub-navigation within the Legito viewer is handled.
  • The component uses row classes and the legito-doc-viewer CSS class for layout.

Control Properties

Legito Doc Viewer

A legal document viewer component integrating with the Legito document management platform. Renders legal documents with formatted clauses, annotations, and version history within the Business Hub interface.

Control Properties

PropertyTypeDescription
SmallDroplinkBootstrap column width at the small breakpoint.
MediumDroplinkBootstrap column width at the medium breakpoint.
LargeDroplinkBootstrap column width at the large breakpoint.
OffsetSmallDroplinkColumn offset at the small breakpoint.
OffsetMediumDroplinkColumn offset at the medium breakpoint.
OffsetLargeDroplinkColumn offset at the large breakpoint.
AddClassSingle-Line TextAdditional CSS classes appended to the component wrapper.

Template Properties

Template Properties

This component does not use a datasource template. All document data is resolved client-side from query string parameters.

SourceParameterDescription
Query stringmodeThe Legito document display mode (e.g., edit, view, preview).
Query stringcodeThe unique Legito document code identifying which document to load.