opening/closing
- 1 Minute to read
- DarkLight
opening/closing
- 1 Minute to read
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
You can set the open attribute, which will cause the mosaic to open(Determines if the mosaic is open or closed) or close:
const m = document.querySelector('syndigo-mosaic')
m.setAttribute('open', '') // opens the mosaic
m.removeAttribute('open') // closes the mosaic
You can also detect if the mosaic is currently open or closed:
const isMosaicOpen = !!m.getAttribute('open') // true or false
Was this article helpful?