dwood9100 free asked 3 years ago


I have the need to edit dates in a table-editor object. While undocumented, I can set 'date' as the inputType for a given column and amazingly enough, it works however it uses the default datepicker.

<span class="pun">{</span><span class="str">"label"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"Expiration Date"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"field"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"expirationDate"</span><span class="pun">,</span><span class="pln"> </span><span class="str">"sort"</span><span class="pun">:</span><span class="pln"> </span><span class="kwd">true</span><span class="pun">,</span><span class="pln"> </span><span class="str">"inputType"</span><span class="pun">:</span><span class="pln"> </span><span class="str">"date"</span><span class="pun">}</span>

enter image description here

The problem is that I would really like to MDB Datepicker component as the default date picker does not look as nice as your component.

enter image description here

Is this an enhancement that can be added? I have the pro version and the source and could probably edit it myself, but I would need the webpack build configuration information in order to do so.

Any thoughts or help is greatly appreciated. Thanks!


Grzegorz Bujański staff answered 3 years ago


Also try adding a CSS class datepicker and after opening the modal try init datepicker:

const myDatepicker = new mdb.Datepicker(document.getElementById('myDatepicker')



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

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: 3.2.0
  • Device: any
  • Browser: any
  • OS: any
  • Provided sample code: No
  • Provided link: No