Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
measureratioprovider.php
1<?php
2
4
7
9{
10 public function prepareColumns(): array
11 {
12 $result = [];
13
14 $result['RATIO'] = $this->createColumn('RATIO', [
15 'type' => Grid\Column\Type::FLOAT,
16 'name' => Loc::getMessage('MEASURE_RATIO_COLUMN_PROVIDER_FIELD_RATIO'),
17 'title' => Loc::getMessage('MEASURE_RATIO_COLUMN_PROVIDER_FIELD_TITLE_RATIO'),
18 'necessary' => false,
19 'editable' => $this->allowProductEdit(),
20 'multiple' => false,
21 'select' => [
22 'RATIO',
23 'PRODUCT_ID',
24 ],
25 'sort' => false,
26 'align' => 'right',
27 ]);
28
29 return $result;
30 }
31}
createColumn(string $columnId, array $params=[])
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29