RED-9946: added tooltip with valueDescription.
This commit is contained in:
parent
61b869675e
commit
d52b8b0d87
@ -4,7 +4,11 @@
|
||||
<div class="value">
|
||||
<div class="text">
|
||||
@for (componentValue of currentEntry().componentValues; track componentValue) {
|
||||
<span [innerHTML]="transformNewLines(componentValue.value ?? componentValue.originalValue) | replaceNbsp"></span>
|
||||
<span
|
||||
[innerHTML]="transformNewLines(componentValue.value ?? componentValue.originalValue) | replaceNbsp"
|
||||
[matTooltip]="componentValue.valueDescription"
|
||||
[matTooltipPositionAtOrigin]="true"
|
||||
></span>
|
||||
}
|
||||
</div>
|
||||
<div class="actions">
|
||||
|
||||
@ -10,6 +10,7 @@ import { RevertValueDialogComponent } from '../../dialogs/docu-mine/revert-value
|
||||
import { FilePreviewStateService } from '../../services/file-preview-state.service';
|
||||
import { escapeHtml } from '@common-ui/utils';
|
||||
import { ReplaceNbspPipe } from '@common-ui/pipes/replace-nbsp.pipe';
|
||||
import { MatTooltip } from '@angular/material/tooltip';
|
||||
|
||||
@Component({
|
||||
selector: 'redaction-editable-structured-component-value [entry] [canEdit]',
|
||||
@ -31,6 +32,7 @@ import { ReplaceNbspPipe } from '@common-ui/pipes/replace-nbsp.pipe';
|
||||
FormsModule,
|
||||
AsyncPipe,
|
||||
ReplaceNbspPipe,
|
||||
MatTooltip,
|
||||
],
|
||||
})
|
||||
export class EditableStructuredComponentValueComponent implements OnInit {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user