canvas-datagrid icon indicating copy to clipboard operation
canvas-datagrid copied to clipboard

Need a filter icon instead of the word "(filtered)"

Open TonyGermaneri opened this issue 7 years ago • 5 comments

just what the title says.

TonyGermaneri avatar Jan 05 '18 05:01 TonyGermaneri

Any update on this?

simnovus avatar Sep 16 '19 10:09 simnovus

No, but contributions are always welcome! I can help point you in the right direction. I've paused work on this project to start a private project, I will return here soon. I will still field PRs and make releases.

TonyGermaneri avatar Sep 16 '19 10:09 TonyGermaneri

No, but contributions are always welcome! I can help point you in the right direction. I've paused work on this project to start a private project, I will return here soon. I will still field PRs and make releases.

Any help regarding this will be appreciated.

anothershubham avatar Sep 16 '19 10:09 anothershubham

It would be very much like this https://github.com/TonyGermaneri/canvas-datagrid/blob/master/lib/draw.js#L799

This is the order arrow drawing function. https://github.com/TonyGermaneri/canvas-datagrid/blob/master/lib/draw.js#L95

You can also replace the word "filtered" with an unicode glyph.

I don't know why it's not in the docs (another bug), but args.filterTextPrefix will change the value of the text displayed. Try putting new glyphs in it maybe?

I like to find glyphs here: https://graphemica.com/

Let me know if I can be of any further help.

Cheers, Tony

TonyGermaneri avatar Sep 16 '19 10:09 TonyGermaneri

Thank you very much for the help. Putting filterTextPrefix: \u0264 in the grid property fixed my problem.

anothershubham avatar Sep 16 '19 10:09 anothershubham