UNPKG

6.52 kBYAMLView Raw
1- property: control_type
2 name: Control type
3 description: Choose between a dropdown, buttons or a time slider.
4 width: three quarters
5 type: string
6 style: buttons
7 choices:
8 -
9 - data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAC0AAAAKCAYAAAFXtOeCAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAALaADAAQAAAABAAAACgAAAAAWgdR+AAAAtklEQVQ4EdVV3QnEIAw25TbSB2foNI7iMu0MbuUR4ZOQy4OFCL2AmN8vMQallNLVez+DosNSsg/FGLtyDkR0H1rJMqOMiJxz4KWp1jpUsLNsptCBkD/MlFIgzx3IsD9GflTGTLvImN1ajP1x043dVrlr1fIY4xZZYd2kdATfWgu8NCEedtdWcJ+R1BVYnmIbsEzizW8bDO9CJd4cOijxCEH22DGIq1iyBiv2P8eDP4jVDrzE7/oCOyRFCckULykAAAAASUVORK5CYII=
10 - dropdown
11 -
12 - data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAKCAYAAAFaqpfFAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAK6ADAAQAAAABAAAACgAAAACxtWN2AAAA5klEQVQ4EdVUwQ2DMAwkqBuFBzO0y2QUlqEz5AEzpTrUiyzLEEPbRy2F2D7n4tgWYRiGuZRy75T0lhMxIcZYoKzrWvUeDi0VTSlt2DRN9dQ4jh0WBP4avHneH3kF/SGE5w0GWXPOHRaFfrDiEW5mEJjBZJY7UoPNakjM0s0KWYFnfa6MUbRlWR573daXurLlhHDXJNreugan7D2D0K09YUeJy467no+D1iyRUO+u5+tDLdudaYuIOEcQtncMeba1/6QCrUuv4nWwJIE1ZBKHLgdJY0f2J9z/NQb4cRxV4iQ2y/hvc78ACNVvxtjAMtcAAAAASUVORK5CYII=
13 - "buttons"
14 -
15 - data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAKCAYAAAFeX0f4AAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAKaADAAQAAAABAAAACgAAAABlifOxAAABz0lEQVQ4Ea1UvU7CUBSml05EHoBEB3gFGpg0fQE0Tk6suDC4uKBuxsXJ6BswGZaq0bnRqaR9CglPwEJCW79Dem5Of2iq8Sbk/H/349zTU7Msy6nhdLvdJUk+Ko7jk8RosbNcAupKZhjAjMkRBIHWG41GbTQayTzSP1IOIL32er3DlDMxTEI1DGPh+/4BSA7CMBxMp9N8LlAu2EtF+IVsS6m5maZpeZ4XcDApUGzX6/Wj+Xz+xXaZ1EWg59m2vSeSdYx8URRdili52u/394syqFlgu6TGFcV3+dRms/lGoS8TCAysP+FrUYN39U3WsG4mCmq2b3+Kt3cA9swJiVR4se1sZPw5kwEp8EBgpOD5fWJGOp/hcGiwXiap+atOp2MCTI8HZukY/ogLcUFqlNlfJHl8Vii6abfbj7PZrHDOuBiPNAH7W9hZxhFhgMwd5/6XZJIaDxeFIPHUbDavXddd6QAUmqJse2WcdNS/JV3Lhv5s50gyEi5bQB/jwhf2YcBoYZXuph3LhiF+LcHjXQ4kAQTYGudya0hUbIwzTL8LX+qjFznRer22MbyVtoqoK1UNPKGDy8cgRp2rdOi7p22Ep7eoAP/WV0rdV115lS4RST+YjrA2q0ehBQAAAABJRU5ErkJggg==
16 - slider
17- property: control_styles
18 name: Adv.
19 type: boolean
20 width: quarter
21
22# Button & Dropdown styles
23- property: button_group
24 name: Grouped
25 type: boolean
26 width: quarter
27 choices:
28 - [ On, true ]
29 - [ Off, false ]
30 show_if:
31 control_type: buttons
32 control_styles: true
33- property: button_group_width_mode
34 name: Button group width
35 type: string
36 style: buttons
37 choices:
38 - [ Auto, auto ]
39 - [ Full, full ]
40 - [ Fixed, fixed ]
41 show_if:
42 control_type: buttons
43 button_group: true
44 control_styles: true
45 width: half
46- property: button_group_width_fixed
47 name: Width
48 type: number
49 min: 0
50 max: 100
51 show_if:
52 control_type: buttons
53 button_group: true
54 button_group_width_mode: fixed
55 control_styles: true
56 width: quarter
57- property: dropdown_width_mode
58 name: Dropdown width
59 type: string
60 style: buttons
61 choices:
62 - [ Auto, auto ]
63 - [ Full, full ]
64 - [ Fixed, fixed ]
65 show_if:
66 control_type: dropdown
67 control_styles: true
68 width: half
69- property: dropdown_width_fixed
70 name: Width
71 type: number
72 min: 0
73 max: 100
74 show_if:
75 control_type: dropdown
76 control_styles: true
77 dropdown_width_mode: fixed
78 width: half
79
80# Slider styles
81- property: slider_background_color
82 name: Background
83 type: color
84 width: quarter
85 show_if:
86 control_type: slider
87 control_styles: true
88- property: slider_font_color
89 name: Text
90 type: color
91 width: quarter
92 optional: true
93 show_if:
94 control_type: slider
95 control_styles: true
96- property: slider_handle_color
97 name: Handle
98 type: color
99 width: half
100 show_if:
101 control_type: slider
102 control_styles: true
103- property: slider_width
104 name: Width
105 type: number
106 min: 0
107 max: 100
108 show_if:
109 control_type: slider
110 control_styles: true
111 width: quarter
112- property: slider_margin
113 name: Label width
114 type: number
115 show_if:
116 control_type: slider
117 control_styles: true
118 width: quarter
119 step: 0.1
120 min: 0
121 max: 50
122- property: slider_handle_height
123 name: Height
124 type: number
125 step: 0.1
126 min: 0
127 max: 10
128 show_if:
129 control_type: slider
130 control_styles: true
131 width: quarter
132- property: slider_track_height
133 name: Track height
134 type: number
135 step: 0.1
136 min: 0
137 max: 10
138 show_if:
139 control_type: slider
140 control_styles: true
141 width: quarter
142- property: slider_play_button
143 name: Play button
144 type: boolean
145 show_if:
146 control_type: slider
147 control_styles: true
148 width: half
149- property: slider_loop
150 name: Loop
151 type: boolean
152 width: half
153 show_if:
154 control_type: slider
155 control_styles: true
156 slider_play_button: true
157- property: slider_step_time
158 name: Time between steps
159 description: Measured in seconds, positive values move the slider left to right, negative values move the slider right to left.
160 type: number
161 step: 0.25
162 min: -100
163 max: 100
164 show_if:
165 control_type: slider
166 control_styles: true
167 slider_play_button: true
168- property: slider_restart_pause
169 name: Pause before loop
170 description: Measured in seconds and in addition to the regular step time displayed above.
171 type: number
172 step: 0.25
173 min: 0
174 max: 100
175 width: half
176 show_if:
177 control_type: slider
178 control_styles: true
179 slider_play_button: true
180 slider_loop: true
181
182# Data formatting
183- property: sort
184 name: Sorting
185 type: string
186 width: half
187 choices:
188 -
189 - Unsorted
190 - unsorted
191 -
192 - Categories
193 - categorical
194 -
195 - Dates/times
196 - temporal
197 -
198 - Numbers
199 - numeric
200 show_if:
201 control_styles: true
202- property: sort_temporal_format
203 name: Date/time format in data
204 description: "The date/time format in your data sheet. Used only to sort the data, if required. If your format isn’t in the list, you can enter a custom format using d3-time-format syntax. See npmjs.com/package/d3-time-format for details."
205 type: string
206 show_if:
207 sort: temporal
208 control_styles: true
209 choices:
210 - [ "1986-01-28T11:39:13.000Z", "%Y-%m-%dT%H:%M:%S.%LZ" ]
211 - [ "1986-01-28", "%Y-%m-%d" ]
212 - [ "01/28/1986", "%m/%d/%Y" ]
213 - [ "28-Jan-86", "%d-%b-%y" ]
214 - [ "01/1986", "%m/%Y" ]
215 - [ "Jan 1986", "%b %Y" ]
216 - [ "January 28", "%B %d" ]
217 - [ "28 Jan", "%d %b" ]
218 - [ "1986", "%Y" ]
219 - [ "January", "%B" ]
220 - [ "Jan", "%b" ]
221 - [ "Tuesday", "%A" ]
222 - [ "Tue", "%a" ]
223 - [ "11:39:13", "%X" ]
224 - [ "11:39 AM", "%H:%M %p" ]
225 - [ "11:39", "%H:%M" ]
226 choices_other: true
227