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