@@ -84,8 +84,8 @@ <h6 cCardSubtitle class="mb-2 text-body-secondary">
84
84
Some quick example text to build on the card title and make up the
85
85
bulk of the card content.
86
86
</ p >
87
- < a cCardLink [routerLink] ="[] "> Card link</ a >
88
- < a cCardLink [routerLink] ="[] "> Another link</ a >
87
+ < a [routerLink] ="[] " cCardLink > Card link</ a >
88
+ < a [routerLink] ="[] " cCardLink > Another link</ a >
89
89
</ c-card-body >
90
90
</ c-card >
91
91
</ app-docs-example >
@@ -190,8 +190,8 @@ <h5 cCardTitle>Card title</h5>
190
190
< li cListGroupItem > Vestibulum at eros</ li >
191
191
</ ul >
192
192
< c-card-body >
193
- < a cCardLink [routerLink] ="[] "> Card link</ a >
194
- < a cCardLink [routerLink] ="[] "> Another link</ a >
193
+ < a [routerLink] ="[] " cCardLink > Card link</ a >
194
+ < a [routerLink] ="[] " cCardLink > Another link</ a >
195
195
</ c-card-body >
196
196
</ c-card >
197
197
</ app-docs-example >
@@ -209,7 +209,7 @@ <h5 cCardTitle>Card title</h5>
209
209
< p class ="text-body-secondary small ">
210
210
Add an optional header and/or footer within a card.
211
211
</ p >
212
- < app-docs-example href ="components/card/#header-and-footer " class =" mb-1 ">
212
+ < app-docs-example class =" mb-1 " href ="components/card/#header-and-footer ">
213
213
< c-card >
214
214
< c-card-header > Featured</ c-card-header >
215
215
< c-card-body >
@@ -223,7 +223,7 @@ <h5 cCardTitle>Card title</h5>
223
223
Card headers can be styled by adding ex.
224
224
< code > "h5"</ code > .
225
225
</ p >
226
- < app-docs-example href ="components/card/#header-and-footer " class =" mb-1 ">
226
+ < app-docs-example class =" mb-1 " href ="components/card/#header-and-footer ">
227
227
< c-card >
228
228
< c-card-header >
229
229
< h5 > Header</ h5 >
@@ -287,7 +287,7 @@ <h3>Using grid markup</h3>
287
287
< p class ="text-body-secondary small ">
288
288
Using the grid, wrap cards in columns and rows as needed.
289
289
</ p >
290
- < app-docs-example href ="components/card/#sizing " class =" mb-2 ">
290
+ < app-docs-example class =" mb-2 " href ="components/card/#sizing ">
291
291
< c-row class ="g-4 ">
292
292
< c-col sm ="6 ">
293
293
< c-card >
@@ -310,7 +310,7 @@ <h3>Using utilities</h3>
310
310
Use some of < a href ="https://coreui.io/docs/utilities/sizing/ "> available sizing utilities</ a > to rapidly set a
311
311
card width.
312
312
</ p >
313
- < app-docs-example href ="components/card/#sizing " class =" mb-2 ">
313
+ < app-docs-example class =" mb-2 " href ="components/card/#sizing ">
314
314
< c-card class ="w-75 mb-2 ">
315
315
< c-card-body >
316
316
< ng-container *ngTemplateOutlet ="cardBodyTemplate " />
@@ -390,55 +390,55 @@ <h3>Using utilities</h3>
390
390
</ p >
391
391
< c-row >
392
392
< c-col >
393
- < app-docs-example href ="components/card/## navigation ">
394
- < c-card class =" text-center ">
395
- < c-card-header >
396
- < c-nav class =" card-header-tabs " variant =" tabs " >
397
- < c-nav-item >
398
- < a [active] =" true " cNavLink [routerLink] =" [] " >
399
- Active
400
- </ a >
401
- </ c-nav-item >
402
- < c-nav-item >
403
- < a cNavLink [routerLink] =" [] " > Link </ a >
404
- </ c-nav-item >
405
- < c-nav-item >
406
- < a cNavLink disabled [routerLink] =" [] " >
407
- Disabled
408
- </ a >
409
- </ c-nav-item >
410
- </ c-nav >
411
- </ c-card-header >
412
- < c-card-body >
413
- < ng-container *ngTemplateOutlet =" cardBodyTemplate " / >
414
- </ c-card-body >
415
- </ c-card >
393
+ < app-docs-example href ="components/card/#navigation ">
394
+ < c-tabs activeItemKey =" Active ">
395
+ < c-card class =" text-center " >
396
+ < c-card-header >
397
+ < c-tabs-list class =" card-header-tabs " variant =" tabs " >
398
+ @for (tab of tabs; track tab) {
399
+ < button [itemKey] =" tab " cTab [disabled] =" tab==='Disabled' " >
400
+ {{ tab }}
401
+ </ button >
402
+ }
403
+ </ c-tabs-list >
404
+ </ c-card-header >
405
+ < c-card-body >
406
+ < c-tabs-content >
407
+ @for (panel of tabs; track panel) {
408
+ < c-tab-panel [itemKey] =" panel " >
409
+ < ng-container *ngTemplateOutlet =" cardBodyTemplate; context: {$implicit: panel} " / >
410
+ </ c-tab-panel >
411
+ }
412
+ </ c-tabs-content >
413
+ </ c-card-body >
414
+ </ c-card >
415
+ </ c-tabs >
416
416
</ app-docs-example >
417
417
</ c-col >
418
418
< c-col >
419
- < app-docs-example href ="components/card/## navigation ">
420
- < c-card class =" text-center ">
421
- < c-card-header >
422
- < c-nav class =" card-header-pills " variant =" pills " >
423
- < c-nav-item >
424
- < a [active] =" true " cNavLink [routerLink] =" [] " >
425
- Active
426
- </ a >
427
- </ c-nav-item >
428
- < c-nav-item >
429
- < a cNavLink [routerLink] =" [] " > Link </ a >
430
- </ c-nav-item >
431
- < c-nav-item >
432
- < a cNavLink disabled [routerLink] =" [] " >
433
- Disabled
434
- </ a >
435
- </ c-nav-item >
436
- </ c-nav >
437
- </ c-card-header >
438
- < c-card-body >
439
- < ng-container *ngTemplateOutlet =" cardBodyTemplate " / >
440
- </ c-card-body >
441
- </ c-card >
419
+ < app-docs-example href ="components/card/#navigation ">
420
+ < c-tabs activeItemKey =" Active ">
421
+ < c-card class =" text-center " >
422
+ < c-card-header >
423
+ < c-tabs-list class =" card-header-pills " variant =" pills " >
424
+ @for (tab of tabs; track tab) {
425
+ < button [itemKey] =" tab " cTab [disabled] =" tab==='Disabled' " >
426
+ {{ tab }}
427
+ </ button >
428
+ }
429
+ </ c-tabs-list >
430
+ </ c-card-header >
431
+ < c-card-body >
432
+ < c-tabs-content >
433
+ @for (panel of tabs; track panel) {
434
+ < c-tab-panel [itemKey] =" panel " >
435
+ < ng-container *ngTemplateOutlet =" cardBodyTemplate; context: {$implicit: panel} " / >
436
+ </ c-tab-panel >
437
+ }
438
+ </ c-tabs-content >
439
+ </ c-card-body >
440
+ </ c-card >
441
+ </ c-tabs >
442
442
</ app-docs-example >
443
443
</ c-col >
444
444
</ c-row >
@@ -505,7 +505,7 @@ <h3>Background and color</h3>
505
505
< p class ="text-body-secondary small ">
506
506
Use < code > color</ code > property to change the appearance of a card.
507
507
</ p >
508
- < app-docs-example href ="components/card/#background-and-color " class =" mb-1 ">
508
+ < app-docs-example class =" mb-1 " href ="components/card/#background-and-color ">
509
509
< c-row >
510
510
@for (item of colors; track item; let i = $index) {
511
511
< c-col lg ="4 ">
@@ -533,7 +533,7 @@ <h3>Border</h3>
533
533
< code > textColor</ code > property on the < code > <c-card></ code > or a subset of the
534
534
card's contents as shown below.
535
535
</ p >
536
- < app-docs-example href ="components/card/#border " class =" mb-1 ">
536
+ < app-docs-example class =" mb-1 " href ="components/card/#border ">
537
537
< c-row class ="g-4 ">
538
538
@for (item of colors; track item; let i = $index) {
539
539
< c-col lg ="4 ">
@@ -562,19 +562,19 @@ <h3>Top border</h3>
562
562
< app-docs-example href ="components/card/#top-border ">
563
563
< c-row >
564
564
@for (item of colors; track item; let i = $index) {
565
- < c-col lg ="4 ">
566
- < c-card [cBorder] ="{top: {color: item.color, width: 3}} " [textColor] ="item?.textColor ?? '' " class ="mb-3 ">
567
- < c-card-header > Header</ c-card-header >
568
- < c-card-body >
569
- < h5 cCardTitle > {{ item.color }} card title</ h5 >
570
- < p cCardText >
571
- Some quick example text to build on the card title and make up the bulk of
572
- the card's content.
573
- </ p >
574
- < button [color] ="item.color " cButton > Go somewhere</ button >
575
- </ c-card-body >
576
- </ c-card >
577
- </ c-col >
565
+ < c-col lg ="4 ">
566
+ < c-card [cBorder] ="{top: {color: item.color, width: 3}} " [textColor] ="item?.textColor ?? '' " class ="mb-3 ">
567
+ < c-card-header > Header</ c-card-header >
568
+ < c-card-body >
569
+ < h5 cCardTitle > {{ item.color }} card title</ h5 >
570
+ < p cCardText >
571
+ Some quick example text to build on the card title and make up the bulk of
572
+ the card's content.
573
+ </ p >
574
+ < button [color] ="item.color " cButton > Go somewhere</ button >
575
+ </ c-card-body >
576
+ </ c-card >
577
+ </ c-col >
578
578
}
579
579
</ c-row >
580
580
</ app-docs-example >
@@ -699,7 +699,7 @@ <h5 cCardTitle>Card title</h5>
699
699
four cards to equal width across multiple rows, from the medium breakpoint up.
700
700
</ p >
701
701
< app-docs-example href ="components/card/#grid-cards ">
702
- < c-row [gutter] ="{g: 4} " class =" mb-3 " [md] ="2 " [xs] ="1 ">
702
+ < c-row [gutter] ="{g: 4} " [md] ="2 " [xs] ="1 " class =" mb-3 ">
703
703
< c-col >
704
704
< c-card >
705
705
< ng-container *ngTemplateOutlet ="imgAngularTemplate " />
@@ -835,7 +835,7 @@ <h5 cCardTitle>Card title</h5>
835
835
</ c-row >
836
836
837
837
< ng-template #imgAngularTemplate let-orientation >
838
- < img [cCardImg] ="orientation ?? 'top' " src ="assets/images/angular.jpg ">
838
+ < img [cCardImg] ="orientation ?? 'top' " src ="assets/images/angular.jpg " alt =" CoreUI for Angular " >
839
839
</ ng-template >
840
840
841
841
< ng-template #imgPlaceholderTemplate let-orientation >
@@ -856,8 +856,8 @@ <h5 cCardTitle>Card title</h5>
856
856
</ svg >
857
857
</ ng-template >
858
858
859
- < ng-template #cardBodyTemplate >
860
- < h5 cCardTitle > Card title</ h5 >
859
+ < ng-template #cardBodyTemplate let-title >
860
+ < h5 cCardTitle > Card {{ title ?? 'title' }} </ h5 >
861
861
< p cCardText >
862
862
Some quick example text to build on the card title and make up the bulk of the card's content.
863
863
</ p >
0 commit comments