comparison doc/user_guide.txt @ 8300:b99e76e76496

Make native date and number elements configurable Now for Number() and Integer() properties the browser-native number format can be configured with the use_browser_number_input config item in seciont [web]. The default is 'yes'. For Date() properties the config item is use_browser_date_input (also in section [web]) but the default is 'no'. In addition when defining Date() properties, these now have a parameter 'display_time' which defaults to 'yes' and a 'format' parameter which defaults to None. These set defaults for the field() method of the DateHTMLProperty which have the same parameters (but the display_time parameter of field() takes a boolean, not 'yes'/'no').
author Ralf Schlatterbeck <rsc@runtux.com>
date Wed, 19 Feb 2025 12:38:06 +0100
parents 6445e63bb423
children
comparison
equal deleted inserted replaced
8299:43899d99fc4d 8300:b99e76e76496
130 Integer Properties 130 Integer Properties
131 ~~~~~~~~~~~~~~~~~~ 131 ~~~~~~~~~~~~~~~~~~
132 132
133 These fields take a whole/integer number without decimal marker like 133 These fields take a whole/integer number without decimal marker like
134 ``123``, ``+123``, ``-123``. Exponents are not supported. Your browser 134 ``123``, ``+123``, ``-123``. Exponents are not supported. Your browser
135 may show an up/down arrow spinner to change the value. 135 may show an up/down arrow spinner to change the value.
136 136
137 Boolean properties 137 Boolean properties
138 ~~~~~~~~~~~~~~~~~~ 138 ~~~~~~~~~~~~~~~~~~
139 139
140 These fields take a value which indicates "yes"/"no", "true"/"false", 140 These fields take a value which indicates "yes"/"no", "true"/"false",
176 Classhelper`_ for details. 176 Classhelper`_ for details.
177 177
178 Date properties 178 Date properties
179 ~~~~~~~~~~~~~~~ 179 ~~~~~~~~~~~~~~~
180 180
181 Date properties are usually shown using a native HTML date 181 Date properties can be shown using a native HTML date (or
182 element. This provides a calendar button for choosing the 182 datetime-local) element by setting ``use_browser_date_input=yes`` in
183 date. The date is shown in the normal format for your location. 183 section ``[web]`` in ``config.ini``. This provides a calendar button for
184 choosing the date. The date is shown in the normal format for your
185 location.
184 186
185 Native date inputs do not allow the use of partial forms as 187 Native date inputs do not allow the use of partial forms as
186 defined below. For this reason, you may edit a date/time 188 defined below. For this reason, you may edit a date/time
187 stamp directly. 189 stamp directly.
188 190

Roundup Issue Tracker: http://roundup-tracker.org/