Daterangepicker in datatable editor

Greetings, can someone provide an example of a daterangepicker as a cell editor in datatable. I want to be able to type text and open a popup with daterange to pick value. I have managed to do the same with other types of data or a single date (with gridsuggest and calendar as the body). The daterange though is not working.

Got it. Not clean, but it just works.

Opinions, advice, criticism are welcome.