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

DominoUIConfig for different "parts" of the application #943

Closed
schube opened this issue Jun 6, 2024 · 2 comments
Closed

DominoUIConfig for different "parts" of the application #943

schube opened this issue Jun 6, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request Feature version 2.x.x Version 2.x.x issues
Milestone

Comments

@schube
Copy link
Contributor

schube commented Jun 6, 2024

Is your feature request related to a problem? Please describe.
I am setting getTableTextHeaderFilterSearchDelay with

	 DominoUIConfig.CONFIG.setUIConfig(new UIConfig() {
            
            @Override
            public int getTableTextHeaderFilterSearchDelay() {
                return 500;
            
            }
        });

which is fine for my remote data store, because I do not want to trigger a search for each letter typed.

But the same application has also a local data store, where I do NOT want that delay. I would rather like an instant search in that case.

Currently, there is no way to provide different configurations, since the config is global.

(Maybe I miss something?)

Describe the solution you'd like
I think a GLOBAL configuration is not that good, see scenario described above.
I would like to create multiple instances of DominoUIConfig and pass that to my components (such as Datatable)

Additional context
DominoUI 2.0

Thank you!

@vegegoku vegegoku self-assigned this Jun 25, 2024
@vegegoku vegegoku added enhancement New feature or request Feature version 2.x.x Version 2.x.x issues labels Jun 25, 2024
@vegegoku vegegoku added this to the 2.0.2 milestone Jun 25, 2024
@vegegoku
Copy link
Member

now you can use setOwnConfig on a delayed header filter, this kind of configuration will be added to other components per request.

@schube
Copy link
Contributor Author

schube commented Jul 15, 2024

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Feature version 2.x.x Version 2.x.x issues
Projects
Status: Done
Development

No branches or pull requests

2 participants