Closed shyakadavis closed 1 year ago
I am not sure, if this is an issue with the package. Also, thanks for the detailed code, And I don't have lot of spare time ATM, It would be greatly appreciated if you could move this code to a stackblitz and provide a working example so it would help me assist faster.
You can include the part (for loop) version that you are trying to get working. No need to included the one that is commented out in gist.
Hey, @sibiraj-s. Here is the StackBlitz link.
Please let me know if something is wrong or the like.
Thanks.
The stackblitz doesn't load for some reason.
Also I see this error on terminal
Okay. I copied some code to my local and tried it.
Change
const menuItems = []
to
$: menuItems = []
This should fix the issue.
I am moving this to a discussion as this is not an issue with editor.
Hi.
First and foremost, thank you so much for the project. It has been a great joy using it.
That said, I ran into some trouble trying to create the style toggle items.
From the examples, you create individual functions, say:
and then create a button to toggle:
Now, given that I want to create several menu items, I don't want the trouble of repeating the above snippet2 for every item.
So, I created an array as such:
so that I can iterate in the markup like so:
The problem I ran into, is that when doing it like that, the
isActive
store doesn't seem to work. What I mean is:H1
, andB
are active, then the background doesn't register.P
that usually gets active whenever you jump to a new line, doesn't seem to register as well.Any help is greatly appreciated.
Here is a link to a detailed Gist
Thanks.