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';
10
10
exportAs : 'cCarouselItem' ,
11
11
host : {
12
12
class : 'carousel-item' ,
13
- '[class.active]' : 'active()'
13
+ '[class.active]' : 'active()' ,
14
+ '[attr.role]' : 'role()'
14
15
}
15
16
} )
16
17
export class CarouselItemComponent {
@@ -38,6 +39,13 @@ export class CarouselItemComponent {
38
39
*/
39
40
readonly interval = input < number > ( - 1 ) ;
40
41
42
+ /**
43
+ * Carousel item role.
44
+ * @return string
45
+ * @default 'group'
46
+ */
47
+ readonly role = input ( 'group' ) ;
48
+
41
49
constructor ( ) {
42
50
this . #carouselService. carouselIndex$ . pipe ( takeUntilDestroyed ( this . #destroyRef) ) . subscribe ( ( nextIndex ) => {
43
51
if ( 'active' in nextIndex ) {
You can’t perform that action at this time.
0 commit comments