Display only 4 indicators in the Carousel (Primeng)

Asked

Viewed 9 times

0

Good night, you guys. I’m trying to leave only 4 Carousel indicators being displayed on his footer. I am using Primeng, but on the indicators I did not find in the documentation something that allows me this. I will have 10 objects in this Carousel, but I would only display 4 indicators at a time. Does anyone know how? I’ll post the photo and code

<div class="carousel">
        <div class="content">
            <p-carousel [value]="screens"  [numVisible]='1' [numScroll]="1" >
                <ng-template let-screens pTemplate="item">
                    <img [src]="screens.url" alt="" class="img-carousel">
                    <h6 class="legenda-carousel">{{screens.legenda}}</h6>
                </ng-template>
            </p-carousel>
        </div>
    </div>

inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.