Sha256: 7a98341b26a14621a8faf19964f5677ac7e959210b1932b0800e2672f71ad128
Contents?: true
Size: 602 Bytes
Versions: 228
Compression:
Stored size: 602 Bytes
Contents
import {Controller} from '@hotwired/stimulus' export default class SlideoverComponent extends Controller { static targets = ['expandable', 'expandWrapper', 'slidePanel', 'buttonWrapper'] declare readonly expandableTarget: HTMLDivElement declare readonly expandWrapperTarget: HTMLDivElement declare readonly slidePanelTargets: [HTMLDivElement] declare readonly buttonWrapperTarget: HTMLDivElement toggle() { this.expandableTarget.classList.toggle('ariadne-hidden') for (const slidePanel of this.slidePanelTargets) { slidePanel.classList.toggle('ariadne-hidden') } } }
Version data entries
228 entries across 228 versions & 1 rubygems