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

add findTabByKey to tabs #966

Closed
howudodat opened this issue Sep 23, 2024 · 0 comments
Closed

add findTabByKey to tabs #966

howudodat opened this issue Sep 23, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request version 2.x.x Version 2.x.x issues
Milestone

Comments

@howudodat
Copy link

howudodat commented Sep 23, 2024

Please add a findTabByKey to tabs. Sometimes I want to find a tab to enable / disable it or add some css or perform some other function. Something along the lines of below code would be very helpful

protected Tab findTabByKey(String key) {
	Optional<Tab> result = getTabs()
		.stream()
		.filter(t -> t.getKey().equalsIgnoreCase(key))
		.findFirst();

	return result.isPresent() ? result.get() : null; 
}
@vegegoku vegegoku self-assigned this Sep 23, 2024
@vegegoku vegegoku added enhancement New feature or request version 2.x.x Version 2.x.x issues labels Sep 23, 2024
@github-project-automation github-project-automation bot moved this to To do in Domino UI Sep 23, 2024
@vegegoku vegegoku added this to the 2.0.3 milestone Sep 23, 2024
vegegoku added a commit that referenced this issue Sep 24, 2024
@github-project-automation github-project-automation bot moved this from To do to Done in Domino UI Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request version 2.x.x Version 2.x.x issues
Projects
Status: Done
Development

No branches or pull requests

2 participants