mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-19 06:58:32 +02:00
32f8274929
Update `text` functions to `html` to support inserting the `span` elements Specify `html: false` for various instances where a `span` is not desired, e.g. `placeholder` and `title` attributes
26 lines
911 B
JavaScript
26 lines
911 B
JavaScript
|
|
import { t } from '../../core/localizer';
|
|
import { uiPane } from '../pane';
|
|
|
|
import { uiSectionBackgroundDisplayOptions } from '../sections/background_display_options';
|
|
import { uiSectionBackgroundList } from '../sections/background_list';
|
|
import { uiSectionBackgroundOffset } from '../sections/background_offset';
|
|
import { uiSectionOverlayList } from '../sections/overlay_list';
|
|
|
|
export function uiPaneBackground(context) {
|
|
|
|
var backgroundPane = uiPane('background', context)
|
|
.key(t('background.key', { html: false }))
|
|
.title(t('background.title'))
|
|
.description(t('background.description'))
|
|
.iconName('iD-icon-layers')
|
|
.sections([
|
|
uiSectionBackgroundList(context),
|
|
uiSectionOverlayList(context),
|
|
uiSectionBackgroundDisplayOptions(context),
|
|
uiSectionBackgroundOffset(context)
|
|
]);
|
|
|
|
return backgroundPane;
|
|
}
|