I'm using ExtJS 7.3.1 (modern) and I have a problem with the timefield picker. I can't find a solution to let the user choose directly in the 24hour format without switch between AM and PM option ... is it possible?
In the visualization no problem, because there is the format property ('H:i').
Asked
Active
Viewed 313 times
1
kissu
- 40,416
- 14
- 65
- 133
Studio Centro srl
- 13
- 3
-
sorry modern toolkit – Studio Centro srl Jul 08 '21 at 07:58
-
in the sample fiddle of sencha we can see the AM/PM option in the picker: fiddle.sencha.com/#fiddle/32ki – Studio Centro srl Jul 08 '21 at 10:01
1 Answers
1
For this, you would have to set the meridiem config of the picker to false:
{
xtype: 'timefield',
label: 'Birthday',
format: 'H:i',
picker: {
meridiem: false
}
}
Also note, there is alignPMInside config (also on the picker), that when set to true, will align the hours in two circles:
{
xtype: 'timefield',
label: 'Birthday',
format: 'H:i',
picker: {
meridiem: false,
alignPMInside: true
}
}
scebotari66
- 3,395
- 2
- 27
- 34

