Files
iD/modules/ui/note_header.js
2018-07-10 21:45:02 -04:00

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;
}