Modify the data in Filter

Tags: #<Tag:0x00007efc6abf0de8> #<Tag:0x00007efc6abf0b90>

@aleksandra_budnik is there is anyway to modify the data in filter ? I need to change the data only in the filter. For example if the column data is

Test<\p> i have to show that in filter value as ‘Test’ .

Hi @savithagnair7

At the moment Filters plugin reads the data that is in the cell. So you can either

  1. Create a custom dropdown menu option that works as our filters
  2. Alter the data and add additional chars via the cell renderer

Hi @aleksandra_budnik ,thanks for the reply. For the second point we already added a cell renderer which is an html cell. we need to show the markdown syntax in the formatted way so we converted the markdown syntax to html and binding that in the html column so the data showing in format.
For this column filter having the issue …In filter it is showing as html syntax.that’s why we need to change the data

Yes, so the situation is the same as this one https://jsfiddle.net/rtgo0kvn/

23

59

so the only thing you can do is to create a custom dropdown menu option that does the same a filter_by_value but it strips the tags (like here in this code snippet https://css-tricks.com/snippets/javascript/strip-html-tags-in-javascript/ or the SO topic https://stackoverflow.com/questions/5002111/how-to-strip-html-tags-from-string-in-javascript).

I recommend checking the dropdown menu tutorial https://handsontable.com/docs/javascript-data-grid/column-filter/ it has a lot of demos that show how to create a custom option.