set_col_time() *

* Note that currently it is not supported in the Lite and Basic edition.

Set the edit type to be time and enable the time-picker

1
$dg -> set_col_time("time_from");

It is recommended to also use the formatter function so that the time is set in the right value during the edit.

1
2
$pg->set_col_property("time_from",
            array("formatter"=>"date", "formatoptions"=>array("srcformat"=>"h:i A","newformat"=>"h:i A")))