tui.grid icon indicating copy to clipboard operation
tui.grid copied to clipboard

add option on filters to disable key sensitive

Open attyskater opened this issue 4 years ago • 3 comments

It would be really useful to be able to enable and disable key sensitive on text column filters. example

columns: [
    {
      header: 'Name',
      name: 'name',
      filter: {
        type: 'text',
        showApplyBtn: true,
        showClearBtn: true,
        keySensitive: false
      }
    }

AND:

const state = {
  code: 'eq',
  keySensitive: false,
  value: 30
};

grid.filter(columnName, state);

attyskater avatar Dec 07 '21 15:12 attyskater

@attyskater Can you tell me exactly what behavior you want when add that option?

jajugoguma avatar Dec 08 '21 02:12 jajugoguma

@jajugoguma Yes sorry, I assumed the meaning of key sensitive. If you take the filter example (here) and go to the "Name" column when you search for "Beautiful Lies" (with Equals or Contains) it finds the value. However, if you type "beautiful lies" (without uppercase) it doesn't find it. My idea is that by disabling the KeySensitive option it finds the rows that have the characters in the column regardless of whether they are uppercase or lowercase.

attyskater avatar Dec 08 '21 07:12 attyskater

@attyskater I'll fix it. Thank you!

jajugoguma avatar Dec 14 '21 00:12 jajugoguma