Replies: 1 comment
-
It looks like we mistakenly tagged the version file, but the files were up to date. The versioning has now been corrected with the latest Preline UI v3.0 update. Thanks! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Guy i just want to use @preline/overlay. Not using Preline UI as a package in my Rails 7 app.
i installed it with yarn
i added it to my tailwind.config.js
module.exports = { content: [ './app/helpers/**/*.rb', './app/javascript/**/*.js', './app/views/**/*', 'node_modules/@preline/**/*.js' ], plugins: [ require('postcss-import'), require('@tailwindcss/forms'), require('autoprefixer') ] }
In my application.js
import HSOverlay from "@preline/overlay"; window.HSOverlay = HSOverlay;
I'm calling offcanvas in offcanvas_controller.js
`import {Controller} from "@hotwired/stimulus"
// Connects to data-controller="offcanvas"
export default class extends Controller {
initialize(event) {
var element = document.querySelector('#hs-offcanvas-right');
if (element) {
this.offcanvas = new HSOverlay(element);
}
`
Not working without any errors.
Beta Was this translation helpful? Give feedback.
All reactions