0.0.10 • Published 3 years ago
qpavy-webcomponents v0.0.10
Using qpavy webcomponents
- Put this script tag :
<script type='module' src='https://unpkg.com/qpavy-webcomponents@<LAST_VERSION>/dist/webcomponents/webcomponents.esm.js'></script>in the head of your index.html - Then you can use the element anywhere in your template, JSX, html etc
q-carousel
Create a fullpage carousel with background-image, title, description and link.
Usage
<q-carousel></q-carousel> works with <li> elements. each <li> defining a slide that should have those attributes to works :
carousel-image-url: the backround image url of the slidecarousel-title: The title of the slidecarousel-description: The description of the slidecarousel-url: The link of the slide
Example
<q-carousel>
<li carousel-image-url="image.jpg" carousel-title="title" carousel-description="description" carousel-url="http://url"></li>
<li carousel-image-url="image2.jpg" carousel-title="title2" carousel-description="description2" carousel-url="http://url2"></li>
<li carousel-image-url="image3.jpg" carousel-title="title3" carousel-description="description3" carousel-url="http://url3"></li>
<li carousel-image-url="image4.jpg" carousel-title="title4" carousel-description="description4" carousel-url="http://url4"></li>
</q-carousel>Properties
| Property | Attribute | Description | Type | Default |
|---|---|---|---|---|
withScroll | with-scroll | boolean | true |