my-swiper | 小程序3D轮播,旋转木马轮播组件 | Chat library
kandi X-RAY | my-swiper Summary
kandi X-RAY | my-swiper Summary
小程序3D轮播,旋转木马轮播组件
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of my-swiper
my-swiper Key Features
my-swiper Examples and Code Snippets
Community Discussions
Trending Discussions on my-swiper
QUESTION
I've a carousel based on the Swiperjs third-party library. The problem is that when I use scope: true, I have no problem and it works fine, however, when I try to configure the component with shadow: true, it is destroyed and nothing works. I am using the library as follows:
...ANSWER
Answered 2020-Feb-20 at 08:16When you enable shadow
, all child elements of the component will be moved into its shadow DOM and therefore be hidden as implementation detail. That means that you won't be able to find your container with the .swiper-container
query selector anymore.
However, the Swiper
constructor can also take an HTML element instead of a query selector, so you can use ref
on the container element instead:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install my-swiper
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page