jsakamoto / BlazingStory

The clone of "Storybook" for Blazor, a frontend workshop for building UI components and pages in isolation.
https://jsakamoto.github.io/BlazingStory/
Mozilla Public License 2.0
319 stars 15 forks source link

Support for nullable enums #23

Closed Dovrol closed 9 months ago

Dovrol commented 9 months ago

After making property of type enum nullable, control panel is displaying "-", instead of enum items (I guess in this case it also should display button to clear value or just add "null" to options).

Screenshot 2024-02-17 at 22 36 37
Dovrol commented 9 months ago

This also applies to bool, int and other numeric types

jsakamoto commented 9 months ago

@Dovrol Thank you for your proposal. The latest "Blazing Story" version now supports Nullable<T> types for enum, int, and bool types.

https://www.nuget.org/packages/BlazingStory/1.0.0-preview.26#releasenotes-body-tab

Please check it out ;)

Dovrol commented 9 months ago

Thank you for the fix, there was small typo that "Unknown" word was rendering instead of "-" but I see that you already fixed that, so I'm closing issue :)

jsakamoto commented 9 months ago

there was small typo that "Unknown" word was rendering instead of "-"

Thank you for letting me know that, @Dovrol !

I fixed it and released the new version.

Thank you for your contributions!