mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-14 01:33:03 +00:00
28 lines
598 B
JavaScript
28 lines
598 B
JavaScript
import { t } from '../util/locale';
|
|
import { svgIcon } from '../svg';
|
|
|
|
|
|
export function uiNoteHeader() {
|
|
var _note;
|
|
|
|
|
|
function noteHeader(selection) {
|
|
selection.selectAll('.note-header')
|
|
.data([_note], function(d) { return d.id; })
|
|
.enter()
|
|
.append('h3')
|
|
.attr('class', 'note-header')
|
|
.text(function(d) { return String(t('note.note') + ' ' + d.id); });
|
|
}
|
|
|
|
|
|
noteHeader.note = function(_) {
|
|
if (!arguments.length) return _note;
|
|
_note = _;
|
|
return noteHeader;
|
|
};
|
|
|
|
|
|
return noteHeader;
|
|
}
|