XF 2.3 Input time XF code?

Anatoliy

Well-known member
Licensed customer
What is code to add a time input field to a form?

Thanks.

P.S. is there some kind of tutorial about XF form fields, so I would not start a new thread for each form element?
I didn't find much about it in dev docs.
 
Hello,

You can use this <xf:timeinputrow />

P.S. is there some kind of tutorial about XF form fields, so I would not start a new thread for each form element?
I didn't find much about it in dev docs.

You can look on another template or look the tags in this folder XF\Template\Compiler\Tag\
 
And what type of data would it be? varchar? what should I add to setup (installStep)

Code:
$table->addColumn('time', 'varchar', 5)->setDefault('00:00');

?
 
Back
Top Bottom