VaadinIcons fromCodepoint static method is missing
Open
Nobody has claimed this yet.
enhancement
workaround
- Dominant language
- Java
- Stars
- 1.8k
- Forks
- 717
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 3
Description
Vaadin 8.x.x is awesome!
I'm currently migrating a 7.7.8 application to 8.0.5.
An important method present in FontAwsome enum is
public static FontAwesome fromCodepoint(final int codepoint){...}
It doesn't exist on VaadinIcons enum class.
It is very useful if you store icon information on database by codepoint int.
Some hints:
- Try to not iterate all icons to found (maybe a compiled generated switch/case version).
- Provide a solution to map FontAwesome codepoints to VaadinIcons codepoints equivalent. (is it possible for all icons?)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by comparing the FontAwesome enum's fromCodepoint method with the VaadinIcons enum. Investigate how icon codepoints are represented and whether FontAwesome and VaadinIcons have equivalent entries. Done means the requested lookup behavior and the feasibility or scope of cross-enum mapping are clearly resolved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100