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 callsdynamicDocuments.init()(from/assets/markel-documents.js) with configuration specifyingview: '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-documentslibrary. - A
<style>block is injected at head top setting the viewer toheight: 100vhfor full-viewport display. - The
viewerRelativePathconfig option is set todocument-viewer, controlling how sub-navigation within the Legito viewer is handled. - The component uses row classes and the
legito-doc-viewerCSS 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
| Property | Type | Description |
|---|---|---|
| Small | Droplink | Bootstrap column width at the small breakpoint. |
| Medium | Droplink | Bootstrap column width at the medium breakpoint. |
| Large | Droplink | Bootstrap column width at the large breakpoint. |
| OffsetSmall | Droplink | Column offset at the small breakpoint. |
| OffsetMedium | Droplink | Column offset at the medium breakpoint. |
| OffsetLarge | Droplink | Column offset at the large breakpoint. |
| AddClass | Single-Line Text | Additional 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.
| Source | Parameter | Description |
|---|---|---|
| Query string | mode | The Legito document display mode (e.g., edit, view, preview). |
| Query string | code | The unique Legito document code identifying which document to load. |