globalConfig.featureState.commentToolEnabled | boolean | Comment Tool is enabled at the workspace level. | velt-class="'is-disabled': '!{globalConfig.featureState.commentToolEnabled}'" |
globalConfig.featureState.addCommentMode | boolean | Add-comment mode is currently active (next click anywhere drops a new pin). | velt-class="'add-mode': {globalConfig.featureState.addCommentMode}" |
globalConfig.featureState.popoverMode | boolean | Popover mode is enabled — the comment dialog opens as a popover after a pin is dropped. | velt-class="'popover': {globalConfig.featureState.popoverMode}" |
globalConfig.featureState.groupMatchedComments | boolean | Matched comments are grouped together on the page. | velt-class="'grouped': {globalConfig.featureState.groupMatchedComments}" |
componentConfig.data.commentAnnotationAvailable | boolean | An annotation is currently associated with this tool instance. | velt-if="{componentConfig.data.commentAnnotationAvailable}" |
componentConfig.data.context | object | null | Free-form annotation context bound to this tool instance. | <velt-data field="componentConfig.data.context.foo" /> |
componentConfig.data.contextOptions | ContextOptions | null | Context-options config for the next annotation. | Used internally — read individual fields if needed. |
componentConfig.data.folderId | string | null | Folder this tool drops annotations into. | <velt-data field="componentConfig.data.folderId" /> |
componentConfig.data.veltFolderId | string | null | Velt-managed folder id (when no client folder is set). | <velt-data field="componentConfig.data.veltFolderId" /> |
componentConfig.data.clientDocumentId | string | null | Client-supplied document id. | <velt-data field="componentConfig.data.clientDocumentId" /> |
componentConfig.data.documentId | string | null | Resolved document id for this instance. | <velt-data field="componentConfig.data.documentId" /> |
componentConfig.data.locationId | string | null | Location id this tool is scoped to. | <velt-data field="componentConfig.data.locationId" /> |
componentConfig.data.targetElementId | string | null | DOM target the next annotation will anchor onto. | <velt-data field="componentConfig.data.targetElementId" /> |
componentConfig.data.sourceId | string | null | Source-id passed through from the host application. | <velt-data field="componentConfig.data.sourceId" /> |
componentConfig.data.disabled | boolean | Tool is disabled by host configuration. | velt-class="'is-disabled': {componentConfig.data.disabled}" |
componentConfig.uiState.showDefaultBtn | boolean | Default built-in button should render. Set to false when a wireframe overrides the button entirely. | velt-if="{componentConfig.uiState.showDefaultBtn}" |
componentConfig.uiState.shadowDom | boolean | Shadow-DOM rendering is enabled. Set on the host element, not from inside the wireframe. | Host config — set via element attribute. |
componentConfig.uiState.darkMode | boolean | Dark mode is active for this instance. | velt-class="'dark': {componentConfig.uiState.darkMode}" |
componentConfig.uiState.addCommentMode | boolean | Per-instance mirror of globalConfig.featureState.addCommentMode. | velt-class="'active': {componentConfig.uiState.addCommentMode}" |
componentConfig.uiState.contextInPageModeComposer | boolean | Tool is rendering inside a page-mode composer. | velt-class="'in-composer': {componentConfig.uiState.contextInPageModeComposer}" |
componentConfig.uiState.commentToolEnabled | boolean | Per-instance mirror of globalConfig.featureState.commentToolEnabled. | velt-class="'enabled': {componentConfig.uiState.commentToolEnabled}" |
parentLocalUIState.darkMode | boolean | Local dark-mode flag (host attribute). | velt-class="'dark': {parentLocalUIState.darkMode}" |
parentLocalUIState.variant | string | Per-instance variant tag set on the host element. | <velt-data field="parentLocalUIState.variant" /> |
parentLocalUIState.shadowDom | boolean | Local shadow-DOM flag. | Host config — set via element attribute. |