Having timepicker 2 appear on input like old version


Topic: Having timepicker 2 appear on input like old version

jaimefuhr asked 4 years 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 answered 4 years 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 4 years ago

Hi

So is any help still needed?

Best, regards


jaimefuhr commented 4 years ago

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


Tomek Makowski staff commented 4 years 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.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

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