mirror of https://github.com/abpframework/abp.git
5 changed files with 66 additions and 0 deletions
@ -0,0 +1,16 @@ |
|||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using Volo.Abp.AspNetCore.Mvc.UI.Widgets; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Demo.Views.Components.Themes.Shared.Demos.CarouselDemo |
||||
|
{ |
||||
|
[Widget] |
||||
|
public class CarouselDemoViewComponent : AbpViewComponent |
||||
|
{ |
||||
|
public const string ViewPath = "/Views/Components/Themes/Shared/Demos/CarouselDemo/Default.cshtml"; |
||||
|
|
||||
|
public IViewComponentResult Invoke() |
||||
|
{ |
||||
|
return View(ViewPath); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
@ -0,0 +1,25 @@ |
|||||
|
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Demo.Views.Components.Themes.Shared.Demos.CarouselDemo |
||||
|
|
||||
|
<abp-component-demo-section title="Example" view-path="@CarouselDemoViewComponent.ViewPath"> |
||||
|
<abp-carousel style="width: 500px; height:250px" indicators="false" controls="false"> |
||||
|
<abp-carousel-item src="https://via.placeholder.com/500x250.png?text=First+Slide"></abp-carousel-item> |
||||
|
<abp-carousel-item src="https://via.placeholder.com/500x250.png?text=Second+Slide"></abp-carousel-item> |
||||
|
<abp-carousel-item src="https://via.placeholder.com/500x250.png?text=Third+Slide"></abp-carousel-item> |
||||
|
</abp-carousel> |
||||
|
</abp-component-demo-section> |
||||
|
|
||||
|
<abp-component-demo-section title="With indicators" view-path="@CarouselDemoViewComponent.ViewPath"> |
||||
|
<abp-carousel style="width: 500px; height:250px" indicators="true" controls="false"> |
||||
|
<abp-carousel-item src="https://via.placeholder.com/500x250.png?text=First+Slide"></abp-carousel-item> |
||||
|
<abp-carousel-item src="https://via.placeholder.com/500x250.png?text=Second+Slide"></abp-carousel-item> |
||||
|
<abp-carousel-item src="https://via.placeholder.com/500x250.png?text=Third+Slide"></abp-carousel-item> |
||||
|
</abp-carousel> |
||||
|
</abp-component-demo-section> |
||||
|
|
||||
|
<abp-component-demo-section title="With controls" view-path="@CarouselDemoViewComponent.ViewPath"> |
||||
|
<abp-carousel style="width: 500px; height:250px" indicators="true" controls="true"> |
||||
|
<abp-carousel-item src="https://via.placeholder.com/500x250.png?text=First+Slide"></abp-carousel-item> |
||||
|
<abp-carousel-item src="https://via.placeholder.com/500x250.png?text=Second+Slide"></abp-carousel-item> |
||||
|
<abp-carousel-item src="https://via.placeholder.com/500x250.png?text=Third+Slide"></abp-carousel-item> |
||||
|
</abp-carousel> |
||||
|
</abp-component-demo-section> |
||||
@ -0,0 +1,7 @@ |
|||||
|
@page |
||||
|
@using Volo.Abp.AspNetCore.Mvc.UI.Theme.Shared.Demo.Views.Components.Themes.Shared.Demos.CarouselDemo |
||||
|
@model Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo.Pages.Components.Carousel.IndexModel |
||||
|
<h2>Carousel</h2> |
||||
|
<p>Based on <a href="https://getbootstrap.com/docs/4.0/components/carousel/" target="_blank"> Bootstrap carousel</a>.</p> |
||||
|
|
||||
|
@await Component.InvokeAsync(typeof(CarouselDemoViewComponent)) |
||||
@ -0,0 +1,17 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Threading.Tasks; |
||||
|
using Microsoft.AspNetCore.Mvc; |
||||
|
using Microsoft.AspNetCore.Mvc.RazorPages; |
||||
|
|
||||
|
namespace Volo.Abp.AspNetCore.Mvc.UI.Theme.Basic.Demo.Pages.Components.Carousel |
||||
|
{ |
||||
|
public class IndexModel : PageModel |
||||
|
{ |
||||
|
public void OnGet() |
||||
|
{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue