I want to display the current time on the display (hours and minutes). How can I do it most efficiently in terms of performance. I'm Using this technique for solve my question. Please help me.
time: function (data: any) {
debugger
console.log(`Now`);
return {
field: '<input class="form-control" type="time" value="13:30"/>',
};
},
time: {
onadd: (fld) => {
this.controlAdded(fld)
}
},
I attached my UI. I want to do display current time.