File tree 1 file changed +11
-0
lines changed
ij-plugin/src/main/kotlin/org/jetbrains/research/tasktracker/config/survey
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,17 @@ data class SliderHtmlQuestion(
199
199
append(" min=\" $min \" max=\" $max \" step=\" $step \" ${isRequiredString()} " )
200
200
append(" style=\" width: 100%; display: block;\" >" )
201
201
202
+ append(" <div style=\" display: flex; justify-content: space-between; color: white;\" >" )
203
+ (min.. max step step).forEachIndexed { index, value ->
204
+ append(" <div style=\" text-align: center; flex: 1; position: relative;\" >" )
205
+ append(" <div style=\" width: 2px; height: 10px; background: white; margin: auto;\" ></div>" )
206
+ if (index % 5 == 0 ) {
207
+ append(" <span style=\" display: block; margin-top: 2px;\" >$value </span>" )
208
+ }
209
+ append(" </div>" )
210
+ }
211
+ append(" </div>" )
212
+
202
213
append(" <div style=\" display: flex; justify-content: space-between; color: white;\" >" )
203
214
append(" <span>${labels.min} </span>" )
204
215
append(" <span>${labels.max} </span>" )
You can’t perform that action at this time.
0 commit comments