File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Blazor.AdminLte.Site.Shared/Pages/Ui
Blazor.AdminLte/UIElements/Accordian-Carousel Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1818 <Card HeaderBackgroundColor =" Color.Primary" >
1919 <Title ><CardTitle >Carousel</CardTitle ></Title >
2020 <Body >
21- <Carousel Items =" items1" Identifier =" blabla2" />
21+ <Carousel Items =" items1" LinkTarget = " _blank " Identifier =" blabla2" />
2222 </Body >
2323 </Card >
2424 </Column >
Original file line number Diff line number Diff line change 1111 @for ( int i = 0 ; i < Items .Count ; i ++ )
1212 {
1313 <div class =" carousel-item@(i == Items.Count - 1 ? " active carousel-item-left " : string.Empty) @(i==0 ? " carousel-item-next carousel-item-left " : string.Empty)" >
14- <a href =" @Items[i].Link" >
14+ <a href =" @Items[i].Link" target = " @LinkTarget " >
1515 <img class =' d-block w-100' src =" @Items[i].Image" alt =" @Items[i].Alt" >
1616 </a >
1717 </div >
2929@code {
3030 [Parameter ] public string Identifier { get ; set ; } = " carouselExampleIndicators" ;
3131 [Parameter ] public CarouselItemCollection Items { get ; set ; }
32+ [Parameter ] public string LinkTarget { get ; set ; }
3233
3334 protected override Task OnAfterRenderAsync (bool firstRender )
3435 {
3536 if (firstRender )
3637 {
37- JS .InvokeVoidAsync (" carousel" , " #" + Identifier );
38+ JS .InvokeVoidAsync (" carousel" , " #" + Identifier );
3839 }
3940 return base .OnAfterRenderAsync (firstRender );
4041 }
You can’t perform that action at this time.
0 commit comments