Skip to content

add dynamic enum Tutorial#278

Merged
lucas-koehler merged 8 commits intoeclipsesource:masterfrom
LukasBoll:dynamicEnumTutorial
Oct 24, 2025
Merged

add dynamic enum Tutorial#278
lucas-koehler merged 8 commits intoeclipsesource:masterfrom
LukasBoll:dynamicEnumTutorial

Conversation

@LukasBoll
Copy link
Copy Markdown
Contributor

closes #270

Copy link
Copy Markdown
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like it!

Please add a small section at the end that this behavior can be generalized and extracted into React HOCs for cleaner code.

Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
@LukasBoll LukasBoll force-pushed the dynamicEnumTutorial branch from 3af8f33 to 99d4152 Compare March 4, 2024 15:41
@LukasBoll LukasBoll requested a review from sdirix March 4, 2024 15:44
sdirix
sdirix previously requested changes Mar 20, 2024
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
Comment thread content/docs/tutorial/dynamic-enum.mdx
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
Comment thread content/docs/tutorial/dynamic-enum.mdx Outdated
@LukasBoll LukasBoll force-pushed the dynamicEnumTutorial branch from d2d24bc to d6205ec Compare April 15, 2024 12:52
Co-authored-by: Stefan Dirix <sdirix@eclipsesource.com>
closes eclipsesource#270
@LukasBoll LukasBoll force-pushed the dynamicEnumTutorial branch from 817dd55 to 23fa126 Compare April 15, 2024 15:27
@LukasBoll LukasBoll requested a review from sdirix April 15, 2024 15:33
@LukasBoll
Copy link
Copy Markdown
Contributor Author

thank you, I applied the changes from your review!

@sdirix sdirix removed their request for review October 23, 2025 08:12
@sdirix sdirix dismissed their stale review October 23, 2025 08:12

Review taken over by Lucas

- correctly use `x-dependent` and `x-endpoint`
- use useJsonFormsControlProps instead of withJsonFormsEnumProps because options are calculated manually
Copy link
Copy Markdown
Contributor

@lucas-koehler lucas-koehler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looked pretty good to me already. I did a few minor fixes regarding wording and using x- prefixed schema properties for endpoint and dependents.

@lucas-koehler lucas-koehler merged commit b4b2145 into eclipsesource:master Oct 24, 2025
2 checks passed
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.

Add FAQ section or tutorial: How to handle dynamic enum elements

3 participants