Highlighted

Timefield in touch ui

manisha594391

18-04-2018

I want to create a timefield in touch ui dialog.

I can do it in classic ui using xtype="timefield".

Please suggest how can this output be returned in touch ui dialog

Replies

Highlighted

Hemant_arora

18-04-2018

Do you just need timefield and not the complete datetime xtype ?

Otherwise,

Use the dialog converter tool to convert your dialog field.

download and install DCT from the link below.

Dialog Conversion Tool

This should be the resourceType in touch UI

granite/ui/components/coral/foundation/form/datepicker

1468313_pastedImage_1.png

Highlighted
Highlighted
Highlighted

Tyler_Maynard

17-05-2018

You can use the type property of the DatePicker Touch UI component to "time" to only use hours and minutes.

DatePicker — Granite UI 1.0 documentation

But, depending on what your goal you might run into issues - as this stores the property as a date and not a string, as the timefield does. This could cause issues if your trying to use both dialogs while moving authors over to touch ui. Then you would need to follow Scott's advice and create a custom Touch UI Granite Component.