Conditional rendering of last item #297
-
Good lib but i faced a problem that i need to show conditionally a loader as a last item, is this possible in the lib or there any tricks for this one? loadingContent && |
Beta Was this translation helpful? Give feedback.
Answered by
asmyshlyaev177
Feb 3, 2025
Replies: 2 comments 4 replies
-
I will have a look, probably can just render last item conditionally. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@nickiway Created an example with loader https://asmyshlyaev177.github.io/react-horizontal-scrolling-menu/?path=/story/examples-additems--add-items |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can do it in Footer, or can pass
apiRef
Ref to ScrollMenu and use it, it will be undefined until menu rendered.