Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/bizproc/automation/src/tourguide/ |
Upload File : |
import {Loc, Type, Text} from 'main.core'; import {Guide} from 'ui.tour'; export class BeginningGuide { #guide: Guide; constructor(options: {target: HTMLElement, text?: string, article?: string}) { if (!Type.isElementNode(options.target)) { throw 'options.target must be Node Element'; } const text = Type.isStringFilled(options.text) ? options.text : Loc.getMessage('BIZPROC_AUTOMATION_TOUR_GUIDE_BEGINNING_SUBTITLE_1') ; const article = Type.isStringFilled(options.article) ? Text.toInteger(options.article) : ''; this.#guide = new Guide({ steps: [ { target: options.target, title: Loc.getMessage('BIZPROC_AUTOMATION_TOUR_GUIDE_BEGINNING_TITLE'), text, article, condition: { top: true, bottom: false, color: 'primary', }, position: 'bottom', }, ], onEvents: true, }); this.#guide.getPopup().setAutoHide(true); } start() { this.#guide.showNextStep(); } }