1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
config.php
См. документацию.
1<?php
2
4
5$map = [
6 "types" => [
7 //Group parameters
8 'controller_settings/main_background' => ParameterType::GROUP_BACKGROUND,
9 'controller_settings/toolbar_background' => ParameterType::GROUP_BACKGROUND_LIGHT,
10 'controller_settings/loading_background' => ParameterType::GROUP_BACKGROUND,
11 'controller_settings/navigation_bar_background' => ParameterType::GROUP_BACKGROUND_LIGHT,
12 'table/cell_background' => ParameterType::GROUP_BACKGROUND_LIGHT,
13 'sliding_panel/background' => ParameterType::GROUP_BACKGROUND_LIGHT,
14 'buttons/badge' => ParameterType::GROUP,
15 'buttons/stretchable' => ParameterType::GROUP,
16 'additional/push' => ParameterType::GROUP,
17 'offline/files' => ParameterType::GROUP,
18
19
20 //status bar
21 'statusBar/use_top_offset' =>[
22 "type"=>ParameterType::BOOLEAN,
23 "default"=>"NO"
24 ],
25 'statusBar/show_status_bar_without_nav_bar' => [
26 "type"=>ParameterType::BOOLEAN,
27 "default"=>"NO"
28 ],
29 'statusBar/color' => ParameterType::COLOR,
30 'statusBar/opacity' => [
31 "type" => ParameterType::SIZE,
32 "limits" => [
33 "min" => 0.1,
34 "max" => 1
35 ]
36 ],
37
38 //main
39 'controller_settings/main_background/color' => ParameterType::COLOR,
40 'controller_settings/main_background/image' => ParameterType::IMAGE,
41 'controller_settings/main_background/image_landscape' => ParameterType::IMAGE,
42 'controller_settings/main_background/fill_mode' => [
43 "type" => ParameterType::VALUE_LIST,
44 "list" => ["repeat", "crop", "stretch"]
45 ],
46
47 'controller_settings/toolbar_background/color' => ParameterType::COLOR,
48 'controller_settings/toolbar_background/image' => ParameterType::IMAGE,
49
50 'controller_settings/loading_background/color' => ParameterType::COLOR,
51 'controller_settings/loading_background/image' => ParameterType::IMAGE,
52 'controller_settings/loading_background/image_landscape' => ParameterType::IMAGE,
53 'controller_settings/loading_background/fill_mode' => [
54 "type" => ParameterType::VALUE_LIST,
55 "list" => ["repeat", "crop", "stretch"]
56 ],
57
58
59 'controller_settings/navigation_bar_background/color' => ParameterType::COLOR,
60 'controller_settings/navigation_bar_background/image' => ParameterType::IMAGE,
61 'controller_settings/navigation_bar_background/image_large' => ParameterType::IMAGE,
62
63
64 'controller_settings/loading_text_color' => ParameterType::COLOR,//iOS only
65 'controller_settings/progressbar_color' => ParameterType::COLOR,//Android only
66 'controller_settings/title_color' => ParameterType::COLOR,
67
68 //buttons
69 'buttons/ios_use_square_buttons' => ParameterType::BOOLEAN,
70 'buttons/default_back_button' => [
71 "type" => ParameterType::VALUE_LIST,
72 "list" => ["default", "back_text", "back"],
73 ],
74 'buttons/text_color' => ParameterType::COLOR,
75 'buttons/main_background_image' => ParameterType::IMAGE,
76 'buttons/type' => ParameterType::IMAGE_SET,
77 'buttons/badge/background_color' => ParameterType::COLOR,
78 'buttons/badge/text_color' => ParameterType::COLOR,
79 'buttons/badge/show_frame' => ParameterType::BOOLEAN,
80 'buttons/badge/border_color' => ParameterType::COLOR,
81 'table/sections_text_color' => ParameterType::COLOR,
82 'table/sections_text_shadow_color' => ParameterType::COLOR,
83 'table/sections_background_color' => ParameterType::COLOR,
84 'table/cell_text_shadow_color' => ParameterType::COLOR,
85 'table/cell_text_color' => ParameterType::COLOR,
86 'table/cell_detail_text_color' => ParameterType::COLOR,
87
88 'table/row_height' => [
89 "type" => ParameterType::SIZE,
90 "limits" => [
91 "min" => 50
92 ]
93 ],
94 'table/row_height_large' => [
95 "type" => ParameterType::SIZE,
96 "limits" => [
97 "min" => 50
98 ]
99 ],
100 'table/cell_background/color' => ParameterType::COLOR,
101 'table/cell_background/image' => ParameterType::IMAGE,
102 //pull to refresh controller
103
104 'pull_down/background' => ParameterType::GROUP_BACKGROUND,
105 'pull_down/background/color' => ParameterType::COLOR,
106 'pull_down/background/image' => ParameterType::IMAGE,
107 'pull_down/date_text_color' => ParameterType::COLOR,
108 'pull_down/text_color' => ParameterType::COLOR,
109 'pull_down/icon' => ParameterType::IMAGE,
110 'pull_down/text_style' => [
111 "type" => ParameterType::VALUE_LIST,
112 "list" => ["normal", "bold"]
113 ],
114 'pull_down/arrow_color' => ParameterType::COLOR,//android only
115
116 //sliding panel
117 'sliding_panel/text_color' => ParameterType::COLOR,
118 'sliding_panel/background/color' => ParameterType::COLOR,
119 'sliding_panel/background/image' => ParameterType::IMAGE,
120 'sliding_panel/background/image_large' => ParameterType::IMAGE,
121
122 //category switcher in a list controller
123 'category_switcher/button_text_color_selected' => ParameterType::COLOR,
124 'category_switcher/button_text_color' => ParameterType::COLOR,
125 'category_switcher/button_background_color_selected' => ParameterType::COLOR,
126 //additional
127 'additional/use_top_bar' =>
128 [
129 "type"=>ParameterType::BOOLEAN,
130 "default"=>"YES"
131 ],
132 'additional/use_slider' => ParameterType::BOOLEAN,
133 'additional/push/use_push' => [
134 "type"=>ParameterType::BOOLEAN,
135 "default"=>"NO"
136 ],
137 'additional/push/app_push_id' => [
138 "type" => ParameterType::STRING,
139 "enabledIf" => [
140 "additional/push/use_push" => "YES"
141 ]],
142 //offline
143 'offline/launch_mode' => [
144 "type" => ParameterType::VALUE_LIST,
145 "list" => ["offline_only", "online_only", "mixed"],
146 ],
147 'offline/file_list' => ParameterType::VALUE_SET,
148 'offline/main' => [
149 "type" => ParameterType::VALUE_LIST,
150 "list" => "offline/file_list"
151 ],
152 'offline/left' => [
153 "type" => ParameterType::VALUE_LIST,
154 "list" => "offline/file_list"
155 ],
156 'offline/right' => [
157 "type" => ParameterType::VALUE_LIST,
158 "list" => "offline/file_list"
159 ],
160 ],
161
162 "defaults" => [],
163];
164
165return $map;
$map
Определения config.php:5