Having timepicker 2 appear on input like old version


Topic: Having timepicker 2 appear on input like old version

jaimefuhr pro asked 7 months ago

I would like the Time Picker to appear when the user clicks on the input field, not an icon on the right.

Can this be done in 4.19.1?

I was able to partially accomplish this but it does not populate the input field:

 <div class="timepicker">
<i>
<input type="text" id="testField" class="form-control"/>
</i>
</div>

This code will show the time picker but selecting a time will not populate the input field.


jaimefuhr pro answered 7 months ago

I was able to figure this out by reviewing the older documentation.

If you use Javascript to initialize the input field, as in the old version, the time picker will appear when the user selects the input field.

$('#testField').pickatime({});

Now it will appear and populate the text box.


Tomek Makowski staff commented 7 months ago

Hi

So is any help still needed?

Best, regards


jaimefuhr pro commented 7 months ago

Everything is good. Is there API documentation on MDB 4.19.1?


Tomek Makowski staff commented 7 months ago

Here are documentations for old and new one time-picker

Old: https://mdbootstrap.com/docs/jquery/forms/time-picker1/

New: https://mdbootstrap.com/docs/jquery/forms/time-picker/


Please insert min. 20 characters.
Status

Answered

Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: jQuery
  • MDB Version: 4.19.1
  • Device: PC
  • Browser: Microsoft Edge
  • OS: Windows 10
  • Provided sample code: No
  • Provided link: No