Sha256: 8909764767d90f6ddd0415ef388a2ce9e25db80568898d03de18dab3c621a931

Contents?: true

Size: 636 Bytes

Versions: 8

Compression:

Stored size: 636 Bytes

Contents

// Visit The Stimulus Handbook for more details
// https://stimulusjs.org/handbook/introduction
//
// This example controller works with specially annotated HTML like:
//
// <div data-controller="results">
//   <h1 data-target="results.selectAll"></h1>
// </div>

import { Application } from "stimulus"
import ScrollTo from "stimulus-scroll-to"

export default class extends ScrollTo {
  connect() {
  }

  // You can set default options in this getter for all your anchors.
  get defaultOptions () {
    return {
      behavior: 'smooth'
    }
  }
}

const application = Application.start()
application.register("scroll-to", ScrollTo)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geoblacklight_admin-0.4.1 lib/generators/geoblacklight_admin/templates/javascript/controllers/document_controller.js
geoblacklight_admin-0.4.0 lib/generators/geoblacklight_admin/templates/javascript/controllers/document_controller.js
geoblacklight_admin-0.3.2 lib/generators/geoblacklight_admin/templates/javascript/controllers/document_controller.js
geoblacklight_admin-0.3.1 lib/generators/geoblacklight_admin/templates/javascript/controllers/document_controller.js
geoblacklight_admin-0.3.0 lib/generators/geoblacklight_admin/templates/javascript/controllers/document_controller.js
geoblacklight_admin-0.2.1 lib/generators/geoblacklight_admin/templates/javascript/controllers/document_controller.js
geoblacklight_admin-0.1.0 lib/generators/geoblacklight_admin/templates/javascript/controllers/document_controller.js
geoblacklight_admin-0.0.1 lib/generators/geoblacklight_admin/templates/javascript/controllers/document_controller.js