You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
Updating all your Git submodules (eg. the Kirby core modules and any extensions added as submodules) to their latest version, all you need to do is to run these two Git commands.
47
+
Updating all your Git submodules (eg. the Kirby core modules and any extensions added as submodules) to their latest version, all you need to do is to run these few Git commands:
@@ -62,20 +63,24 @@ Using the field in your blueprint couldn't be easier. After installing the plugi
62
63
```yaml
63
64
fields:
64
65
title:
65
-
label: Event Name
66
-
type: text
66
+
label: Event Name
67
+
type: text
67
68
duration:
68
-
label: Event Duration
69
-
type: rangeslider
70
-
min: 1
71
-
max: 7
72
-
step: 1
69
+
label: Event Duration
70
+
type: rangeslider
71
+
min: 1
72
+
max: 7
73
+
step: 1
73
74
postfix: " days"
74
75
75
76
```
76
77
77
78
*Fields related part of the blueprint for the setup shown in the screenshot.*
78
79
80
+
### Within your templates
81
+
82
+
You may use any `rangeslider` field you added to your blueprints just like any other standard `number` field.
83
+
79
84
## Options
80
85
81
86
### min *(required)*
@@ -106,7 +111,7 @@ fields:
106
111
107
112
### step
108
113
109
-
Set the minimal difference between two slider values. Examples: If set to `1` the user may select integral numbers (1, 2, 3, …). If set to `0.5` the user will be able to select integral numbers or numbers end with `.5`. If a user should be able to pick a price of a product, you'd want to set this to `0.01` so the user can select numbers with to decimals.
114
+
Set the minimal difference between two slider values. Examples: If set to `1` the user may select integral numbers (1, 2, 3, …). If set to `0.5` the user will be able to select integral numbers or numbers end with `.5`. If a user should be able to pick a price of a product, you'd want to set this to `0.01` so the user can select numbers with to decimals. The `step` options defaults to `1`.
110
115
111
116
```yaml
112
117
fields:
@@ -120,4 +125,30 @@ fields:
120
125
121
126
### prefix
122
127
128
+
Setting a `prefix` allows you to make the range slider display even more user-friendly. The prefix will be prepended to the sliders number display (even though it will not be added to the stored value). This is especially useful for adding money symbols when using the range slider to pick prices (see below). The `prefix` and `postfix` options may also be used together.
129
+
130
+
```yaml
131
+
fields:
132
+
text:
133
+
label: Product Price
134
+
type: rangeslider
135
+
min: 1
136
+
max: 99
137
+
step: 0.01
138
+
prefix: "$ "
139
+
```
140
+
123
141
### postfix
142
+
143
+
As with the `prefix` option, setting a `postfix` allows you to make the range slider display more user-friendly. The postfix will be appended to the sliders number display (even though it will not be added to the stored value). This is especially useful for adding any kind of unit (durations, distances, etc.) when using the range slider to pick these (see below). The `prefix` and `postfix` options may also be used together.
0 commit comments