A slickInit event may be bound from your template. This event is triggered after Ember's internal didInsertElement with a DOM reference to the newly created widget allowing direct manipulation of the DOM elements after creation.
This widget supports the full range of slick-slider configuration options. The full list with descriptions can be found at the slick-slider homepage: http://kenwheeler.github.io/slick/
accessibility
adaptiveHeight
autoplay
autoplaySpeed
arrows
asNavFor
appendArrows
appendDots
prevArrow
nextArrow
centerMode
centerPadding
cssEase
customPaging
dots
draggable
fade
focusOnSelect
easing
edgeFriction
infinite
initialSlide
lazyLoad
mobileFirst
pauseOnHover
pauseOnDotsHover
respondTo
responsive
rows
slide
slidesPerRow
slidesToShow
slidesToScroll
speed
swipe
swipeToSlide
touchMove
touchThreshold
useCss
variableWidth
vertical
verticalSwiping
rtl
Repo
git clone this repository
cd ember-cli-slick
npm install
Linting
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
Running tests
ember test – Runs the test suite on the current Ember version
ember test --server – Runs the test suite in "watch mode"
ember try:each – Runs the test suite against multiple Ember versions
Hi,
I'm trying to add focus-in and focus-out events on an input inside the slider but they don't seem to work. I've created a fresh project just for test but it's still not working. The events work only from the input outside the slider tags.
Hi,
I try to update an old application based on Ember 2.13 to Ember 3.5 and now my last problem is to use your plugin in the new ember 3.5 environment.
This error occurred: loader.js:247 Uncaught Error: Could not find module emberimported fromember-cli-slick/components/slick-slider at missingModule (loader.js:247) at findModule (loader.js:258) at Module.findDeps (loader.js:168) at findModule (loader.js:262) at Module.findDeps (loader.js:168) at findModule (loader.js:262) at requireModule (loader.js:24) at Class._extractDefaultExport (index.js:422) at Class.resolveOther (index.js:101) at Class.resolve (index.js:163)
We have been using this addon in our project and during the upgrade, I found out that the addon was not compatible with the version 2.12.3, since ember have now moved to ember-source and ember-cli-shims for managing bower dependencies.
Kindly review the PR and let me know if there is any changes I need to make so you may merge it. Always happy to help.
The package ember-cli-slick is not a properly formatted package, we have used a fallback lookup to resolve it at C:\Users\Carlos\Desktop\web-apps\del_sur\node_modules\ember-cli-slick. This is generally caused by an addon not having a main entry point (or index.js).
The ember-cli-slick addon could not be found at C:\Users\Carlos\Desktop\web-apps\del_sur\node_modules\ember-cli-slick.
I'm using this addon to display a card list. Right now I have a polling service to pull the new card list from api every other hour.
I can see from slick repo, there is a similar issue: kenwheeler/slick#1191, basically it needs to destroy the slick and re-initialize again.
I have routes like this: /page/1, /page/2, /page/3
The model.slides depends on the pageId
It works when I'm on a current page and refresh the page. But if I transition from /page/1 to /page/2, the component doesn't rebuild itself with the new content. Similarly, if I transition from /index (no slides) to /page/1, the component seems to load fine, but the container height is only 1px.
Using [email protected] with this package, I get the following error at bootup:
Cannot find module '/Users/denchen/git/my-app/bower_components/ember/ember-template-compiler.js'
Error: Cannot find module '/Users/denchen/git/my-app/bower_components/ember/ember-template-compiler.js'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Class.module.exports.htmlbarsOptions (/Users/denchen/git/my-app/node_modules/ember-cli-slick/node_modules/ember-cli-htmlbars/ember-addon-main.js:78:25)
at Object.registry.add.toTree (/Users/denchen/git/my-app/node_modules/ember-cli-slick/node_modules/ember-cli-htmlbars/ember-addon-main.js:31:36)
at /Users/denchen/git/my-app/node_modules/ember-cli/node_modules/ember-cli-preprocess-registry/preprocessors.js:180:26
at Array.forEach (native)
at processPlugins (/Users/denchen/my-app/node_modules/ember-cli/node_modules/ember-cli-preprocess-registry/preprocessors.js:178:11)
at module.exports.preprocessTemplates (/Users/denchen/git/my-app/node_modules/ember-cli/node_modules/ember-cli-preprocess-registry/preprocessors.js:161:10)
Hi, I was running into an issue where switching between routes that were using this slick addon, my app would throw an error:
Assertion Failed: Attempted to call .sendAction() with the action 'setPosition' on the destroyed object '<labs-waterfront-access@component:slick-slider::ember403>
My solution was to extend ember-cli-slick to call the slick('unslick') method, which turns off all of the listeners that were turned on when the component first initializes. It seems like this should be added to the component. If you agree, I am happy to do a PR.
Hi,
How can I customize the dots, to became something like ids, or tabs name?
Or how can I use the slick methods like: slickGoTo, slickCurrentSlide, slickNext, slickPrev to realize that?
I appreciate any hint.