Sha256: 61d6fc73a998624c594344029ca77ccb2803cb76a607ffdeed6d05f3e35676c1

Contents?: true

Size: 239 Bytes

Versions: 10

Compression:

Stored size: 239 Bytes

Contents

import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static targets = [ "content" ]

  next() {
    this.contentTarget.scrollBy(100, 0)
  }

  prev() {
    this.contentTarget.scrollBy(-100, 0)
  }
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
css-zero-1.0.4 lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
css-zero-1.0.3 lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
css-zero-1.0.2 lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
css-zero-1.0.1 lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
css-zero-1.0.0 lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
css-zero-0.0.98 lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
css-zero-0.0.97 lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
css-zero-0.0.96 lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
css-zero-0.0.95 lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js
css-zero-0.0.94 lib/generators/css_zero/add/templates/app/javascript/controllers/carousel_controller.js