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/calendar/sharing/interface/src/ |
Upload File : |
import SharingButton from './controls/sharingbutton'; import GroupSharingButton from './controls/groupsharingbutton'; export default class Interface { constructor(options) { this.buttonWrap = options.buttonWrap; this.userInfo = options.userInfo || null; this.payAttentionToNewFeature = options.payAttentionToNewFeature ?? false; this.sharingFeatureLimit = options.sharingFeatureLimit ?? false; this.sharingSettingsCollapsed = options.sharingSettingsCollapsed ?? false; this.sortJointLinksByFrequentUse = options.sortJointLinksByFrequentUse ?? false; this.calendarContext = options.calendarContext ?? null; } showSharingButton() { this.sharingButton = new SharingButton({ wrap: this.buttonWrap, userInfo: this.userInfo, payAttentionToNewFeature: this.payAttentionToNewFeature, sharingFeatureLimit: this.sharingFeatureLimit, sharingSettingsCollapsed: this.sharingSettingsCollapsed, sortJointLinksByFrequentUse: this.sortJointLinksByFrequentUse, }); this.sharingButton.show(); } showGroupSharingButton(): void { this.sharingButton = new GroupSharingButton({ wrap: this.buttonWrap, userInfo: this.userInfo, payAttentionToNewFeature: this.payAttentionToNewFeature, sharingFeatureLimit: this.sharingFeatureLimit, sharingSettingsCollapsed: this.sharingSettingsCollapsed, sortJointLinksByFrequentUse: this.sortJointLinksByFrequentUse, calendarContext: this.calendarContext, }); this.sharingButton.show(); } }