uawdijnntqw1x1x1
IP : 3.147.104.221
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
1c9cb
/
..
/
bitrix
/
js
/
main
/
popup
/
src
/
compatibility
/
button.js
/
/
import { Type, Dom } from 'main.core'; declare type ButtonOptions = { id?: string, text?: string, className?: string, events?: { [event: string]: (event) => {} } }; /** * @memberOf BX.Main.Popup * @deprecated use BX.UI.Button */ export default class Button { constructor(params: ButtonOptions) { this.popupWindow = null; this.params = params || {}; this.text = this.params.text || ''; this.id = this.params.id || ''; this.className = this.params.className || ''; this.events = this.params.events || {}; this.contextEvents = {}; for (let eventName in this.events) { if (Type.isFunction(this.events[eventName])) { this.contextEvents[eventName] = this.events[eventName].bind(this); } } this.buttonNode = Dom.create( 'span', { props: { className: 'popup-window-button' + (this.className.length > 0 ? ' ' + this.className : ''), id: this.id }, events: this.contextEvents, text: this.text } ); } render(): Element { return this.buttonNode; } getId(): string { return this.id; } getContainer(): Element { return this.buttonNode; } getName(): string { return this.text; } setName(name: string) { this.text = name || ''; if (this.buttonNode) { Dom.clean(this.buttonNode); Dom.adjust(this.buttonNode, { text: this.text }); } } setClassName(className: string) { if (this.buttonNode) { if (Type.isString(this.className) && (this.className !== '')) { Dom.removeClass(this.buttonNode, this.className); } Dom.addClass(this.buttonNode, className); } this.className = className; } addClassName(className: string) { if (this.buttonNode) { Dom.addClass(this.buttonNode, className); this.className = this.buttonNode.className; } } removeClassName(className: string) { if (this.buttonNode) { Dom.removeClass(this.buttonNode, className); this.className = this.buttonNode.className; } } }
/var/www/axolotl/data/www/yar.axolotls.ru/1c9cb/../bitrix/js/main/popup/src/compatibility/button.js