File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/modules/ui/install/js/ui/accessrights/src/item/hint.js
Back
import {Tag} from 'main.core'; import ColumnItemOptions from "../columnitem"; import Base from "./base"; export default class Hint extends Base { constructor(options: ColumnItemOptions) { super(options); this.hint = options.hint; this.className = options.className; this.hintNode = null; } render(): ?HTMLElement { if (!this.hintNode && this.hint) { const hintManager = BX.UI.Hint.createInstance({ id: 'access-rights-ui-hint-' + this.getId(), popupParameters: { className: 'ui-access-rights-popup-pointer-events ui-hint-popup', autoHide: true, darkMode: true, maxWidth: 280, offsetTop: 0, offsetLeft: 8, angle: true, animation: 'fading-slide', }, }); this.hintNode = Tag.render`<span class='${this.className}'></span>`; this.hintNode.setAttribute(hintManager.attributeName, this.hint); this.hintNode.setAttribute(hintManager.attributeHtmlName, true); this.hintNode.setAttribute(hintManager.attributeInteractivityName, true); hintManager.initNode(this.hintNode); } return this.hintNode; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.28 |
proxy
|
phpinfo
|
Settings