# HG changeset patch # User Sebastien Jodogne # Date 1785667686 -7200 # Node ID fdff9f7fbb92d885ad1c9006a93b9c150b94ba2d # Parent ec5a906b4c36cf4b5c242bf123ef801f656818bb adding annotation properties diff -r ec5a906b4c36 -r fdff9f7fbb92 ViewerPlugin/WebApplication/viewer.js --- a/ViewerPlugin/WebApplication/viewer.js Sun Aug 02 12:34:46 2026 +0200 +++ b/ViewerPlugin/WebApplication/viewer.js Sun Aug 02 12:48:06 2026 +0200 @@ -281,6 +281,54 @@ } +function AddReadOnlyProperty(label, value) +{ + $('#annotation-info').append( + $('
').addClass('d-flex align-items-baseline border-bottom py-1 gap-2').append( + $('').addClass('text-muted small flex-shrink-0').css('width', '8em').text(label), + $('').addClass('text-break').text(value) + ) + ); +} + + +function AddEditableProperty(label, value, onChange) +{ + var input = $('').attr('type', 'text').addClass('form-control form-control-sm flex-grow-1').val(value); + if (onChange) { + input.on('change', function() { onChange($(this).val()); }); + } + $('#annotation-info').append( + $('
').addClass('d-flex align-items-center border-bottom py-1 gap-2').append( + $('