File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
projects/coreui-angular/src/lib/carousel/carousel-item Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
1010 exportAs : 'cCarouselItem' ,
1111 host : {
1212 class : 'carousel-item' ,
13- '[class.active]' : 'active()'
13+ '[class.active]' : 'active()' ,
14+ '[attr.role]' : 'role()'
1415 }
1516} )
1617export class CarouselItemComponent {
@@ -38,6 +39,13 @@ export class CarouselItemComponent {
3839 */
3940 readonly interval = input < number > ( - 1 ) ;
4041
42+ /**
43+ * Carousel item role.
44+ * @return string
45+ * @default 'group'
46+ */
47+ readonly role = input ( 'group' ) ;
48+
4149 constructor ( ) {
4250 this . #carouselService. carouselIndex$ . pipe ( takeUntilDestroyed ( this . #destroyRef) ) . subscribe ( ( nextIndex ) => {
4351 if ( 'active' in nextIndex ) {
You can’t perform that action at this time.
0 commit comments