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

Version Path
ariadne_view_components-0.0.59-x64-mingw-ucrt app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.59-aarch64-linux app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.59-x86_64-darwin app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.59-x86_64-linux app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.59-arm64-darwin app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.59 app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.58-x86_64-darwin app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.58-aarch64-linux app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.58-arm64-darwin app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.58-x64-mingw-ucrt app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.58 app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.58-x86_64-linux app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.57-arm64-darwin app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.57-aarch64-linux app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.57-x86_64-darwin app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.57-x86_64-linux app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.57-x64-mingw-ucrt app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.57 app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.55-x86_64-linux app/components/ariadne/slideover_component/slideover-component.ts
ariadne_view_components-0.0.55-arm64-darwin app/components/ariadne/slideover_component/slideover-component.ts