I am trying to add a custom filter to a custom module in admin grid, however I do not want that column to be shown therefore I have tried both ways by adding a column and making visible field to false and adding <filterInput to filters field but I do not see the filter in the filter grid.
What I want is a text filter which searches LIKE data and if matches the result then shows those certain records.
Filter field:
<filters name="listing_filters">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="params" xsi:type="array">
<item name="filters_modifier" xsi:type="array"/>
</item>
<item name="observers" xsi:type="array"/>
</item>
</argument>
<settings>
<statefull>
<property name="applied" xsi:type="boolean">false</property>
</statefull>
</settings>
<filterInput name="column_name" sortOrder="100" provider="${ $.parentName }">
<settings>
<label translate="true">Text</label>
<dataScope>column_name</dataScope>
</settings>
</filterInput>
</filters>
Column field:
<column name="column_name" component="Magento_Ui/js/grid/columns/select" sortOrder="35">
<settings>
<filter>text</filter>
<dataType>text</dataType>
<bodyTmpl>ui/grid/cells/text</bodyTmpl>
<label translate="true">NAME</label>
<visible>false</visible>
</settings>
</column>
I have also tried to remove visible field but nothing shows.
true