Files
cocos4/editor/inspector/components/safe-area.js
T
2021-05-12 16:36:57 +08:00

17 lines
552 B
JavaScript

const { template, $, update } = require('./base');
exports.template = template;
exports.$ = $;
exports.update = update;
exports.ready = function() {
const tooltip = document.createElement('ui-tooltip');
tooltip.setAttribute('arrow', 'top left+10px');
this.$.componentContainer.before(tooltip);
const label = document.createElement('ui-label');
tooltip.appendChild(label);
label.setAttribute('style', 'display: inline-block; padding: 10px;');
label.setAttribute('value', 'i18n:ENGINE.components.safe_area.brief_help');
};