I have a problem with changing the default date range picker to the date time range picker widget in the sales order grid.
I have done the following:
created the necessary registration.php and module.xml files
registration.php:
<?php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'FunC_OrderGridTimeFilter',
__DIR__
);
module.xml:
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="FunC_OrderGridTimeFilter">
<sequence>
<module name="Magento_Sales"/>
</sequence>
</module>
</config>
and I have added a sales_order_grid.xml file under FunC/OrderGridTimeFilter/viwe/adminhtml/ui_component with the following contents:
<?xml version="1.0" encoding="UTF-8"?>
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<columns name="sales_order_columns">
<column name="created_at">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="filter" xsi:type="string">datetimeRange</item>
<item name="dataType" xsi:type="string">date</item>
<item name="label" xsi:type="string" translate="true">Purchase Date</item>
</item>
</argument>
</column>
</columns>
</listing>
for the value of the filter item i've tried dateRange and dateTimeRange. With both options I don't see any change in the date time picker on the frontend. Changing the label item value does change the label of the column. What am I doing wrong?