stimulus-reveal-controller icon indicating copy to clipboard operation
stimulus-reveal-controller copied to clipboard

Add option to save toggle state

Open rhwd opened this issue 9 months ago • 1 comments

On the Reveal class:

  • Create new function to save the state of a certain item on the session storage.
  • Save function is always called on toggle()
  • If data-reveal-store-id is empty, return null
  • On connect() call restoreState()
  • On restoreState() if there's no save state, return null

On the Landing page

  • Create new example button
  • Create a grid to center all examples image

If you have any suggestions, please tell me!

rhwd avatar May 08 '24 01:05 rhwd

What do you think about it @michaelbaudino, @guillaumebriday?

rhwd avatar May 08 '24 01:05 rhwd