Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column filter's "operator" argument never changes after setting #2856

Closed
pmiklashevych opened this issue May 11, 2021 · 0 comments
Closed

Column filter's "operator" argument never changes after setting #2856

pmiklashevych opened this issue May 11, 2021 · 0 comments
Assignees
Labels
bug Something isn't working forum Issues from forum premium resolved Fixed but not yet released (available in the nightly builds)
Milestone

Comments

@pmiklashevych
Copy link

pmiklashevych commented May 11, 2021

https://www.bryntum.com/forum/viewtopic.php?f=52&t=17428&p=86488#p86488

https://bryntum.com/docs/gantt/#Grid/column/Column#config-filterable

http://lh/bryntum-suite/grid/examples/filtering/

Set Age column definition:

        {
            text       : 'Age',
            field      : 'age',
            width      : 100,
            type       : 'number',
            filterType : 'number',
            filterable : {
                filterFn : ({ value, record, operator }) => {
                    console.log(operator, value);
                    return true;
                }
            }
        },

Open the demo and type "3" to "More than" in the Age column filter. Then type "4" to "Less then". Then type "5" to "Equals". See the console log prints out "> 3", "> 4", "> 5". Expected result is "> 3", "< 4", and "= 5".

@pmiklashevych pmiklashevych added bug Something isn't working premium forum Issues from forum labels May 11, 2021
@pmiklashevych pmiklashevych changed the title Column filter "operator" argument never changes after setting Column filter's "operator" argument never changes after setting May 11, 2021
@pmiklashevych pmiklashevych self-assigned this May 11, 2021
@pmiklashevych pmiklashevych removed their assignment May 11, 2021
@pmiklashevych pmiklashevych self-assigned this May 11, 2021
@pmiklashevych pmiklashevych added ready for review Issue is fixed, the pull request is being reviewed resolved Fixed but not yet released (available in the nightly builds) and removed ready for review Issue is fixed, the pull request is being reviewed labels May 11, 2021
@pmiklashevych pmiklashevych added this to the 4.1.3 milestone May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working forum Issues from forum premium resolved Fixed but not yet released (available in the nightly builds)
Projects
None yet
Development

No branches or pull requests

1 participant