1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
feedbackbutton.php
См. документацию.
1<?php
2
3namespace Bitrix\UI\Buttons;
4
5use Bitrix\Main\Localization\Loc;
6
7class FeedbackButton extends Button
8{
12 protected function getDefaultParameters(): array
13 {
14 return [
15 'text' => Loc::getMessage('UI_BUTTONS_FEEDBACK_BTN_TEXT'),
16 'color' => Color::LIGHT_BORDER,
17 'dataset' => [
18 'toolbar-collapsed-icon' => Icon::MAIL,
19 ],
20 ];
21 }
22
23 protected function init(array $params = []): void
24 {
25 $params['highlight'] = (bool)($params['highlight'] ?? false);
26 if ($params['highlight'])
27 {
28 $params['styles'] ??= [];
29 $params['styles']['z-index'] = 140;
30 $params['styles']['background-color'] = '#fff';
31 }
32 unset($params['highlight']);
33
34 parent::init($params);
35 }
36
40 public static function getJsClass(): string
41 {
42 return 'BX.UI.Button';
43 }
44}
const LIGHT_BORDER
Определения color.php:17
init(array $params=[])
Определения feedbackbutton.php:23
const MAIL
Определения icon.php:39
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
if($inWords) echo htmlspecialcharsbx(Number2Word_Rus(roundEx($totalVatSum $params['CURRENCY']
Определения template.php:799