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

feat(common): add compoundOperatorAltTexts grid option #1181

Merged
merged 2 commits into from
Nov 8, 2023

Conversation

ghiscoding
Copy link
Owner

@ghiscoding ghiscoding commented Nov 8, 2023

  • this new grid option compoundOperatorAlternateTexts will allow the user to override any, or all, texts shown in a Compound Filter operator select dropdown

For example, taking this sample code

this.gridOptions = {
  compoundOperatorAltTexts: {
    numeric: { '=': { operatorAlt: 'eq', descAlt: 'alternate numeric equal description' } },
    text: { '=': { operatorAlt: 'eq', descAlt: 'alternate text equal description' } }
  },
}

will produce the following for both categories (text or numeric) of filter values

image

image

- this new grid option `compoundOperatorAlternateTexts` will allow the user to override any or all texts shown in a Compound Filter `operator` select dropdown
@ghiscoding ghiscoding changed the title feat(common): add compoundOperatorAlternateTexts grid option feat(common): add compoundOperatorAltTexts grid option Nov 8, 2023
@ghiscoding ghiscoding merged commit dc0aa5e into master Nov 8, 2023
3 checks passed
@ghiscoding ghiscoding deleted the feat/operator-detail-alt-texts branch November 8, 2023 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants