-
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
375 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...zor.Components.Web.Bootstrap.Documentation/Pages/Components/HxCarouselDoc/DemoImage.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<svg class="d-block w-100" height="200" xmlns="http://www.w3.org/2000/svg" role="img" preserveAspectRatio="xMidYMid slice" focusable="false"> | ||
<title>Placeholder</title> | ||
<rect width="100%" height="100%" fill="@Color" /> | ||
<text x="50%" y="50%" fill="#ddd" dominant-baseline="middle" text-anchor="middle" font-size="30px">@Text</text> | ||
</svg> | ||
|
||
@code | ||
{ | ||
[Parameter] public string Text { get; set; } | ||
|
||
[Parameter] public string Color { get; set; } = "#666"; | ||
} |
23 changes: 23 additions & 0 deletions
23
...Web.Bootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_Captions.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<HxCarousel Indicators="true" Controls="true"> | ||
<HxCarouselItem Active="true"> | ||
<DemoImage Color="#666" /> | ||
<HxCarouselCaption> | ||
<h5>First slide label</h5> | ||
<p>Some representative placeholder content for the first slide.</p> | ||
</HxCarouselCaption> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Color="#555" /> | ||
<HxCarouselCaption> | ||
<h5>Second slide label</h5> | ||
<p>Some representative placeholder content for the second slide.</p> | ||
</HxCarouselCaption> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Color="#444" /> | ||
<HxCarouselCaption> | ||
<h5>Third slide label</h5> | ||
<p>Some representative placeholder content for the third slide.</p> | ||
</HxCarouselCaption> | ||
</HxCarouselItem> | ||
</HxCarousel> |
32 changes: 0 additions & 32 deletions
32
...otstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_ComplexExample.razor
This file was deleted.
Oops, something went wrong.
18 changes: 9 additions & 9 deletions
18
...Web.Bootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_Controls.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<HxCarousel Controls="true"> | ||
<HxCarouselItem Active="true"> | ||
<div class="d-flex justify-content-center">Carousel Item 1</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 2</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 3</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem Active="true"> | ||
<DemoImage Text="First Slide" Color="#666" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Second Slide" Color="#555" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Third Slide" Color="#444" /> | ||
</HxCarouselItem> | ||
</HxCarousel> |
18 changes: 9 additions & 9 deletions
18
...eb.Bootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_Crossfade.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<HxCarousel Controls="true" Crossfade="true"> | ||
<HxCarouselItem Active="true"> | ||
<div class="d-flex justify-content-center">Carousel Item 1</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 2</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 3</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem Active="true"> | ||
<DemoImage Text="First Slide" Color="#666" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Second Slide" Color="#555" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Third Slide" Color="#444" /> | ||
</HxCarouselItem> | ||
</HxCarousel> |
11 changes: 11 additions & 0 deletions
11
...nts.Web.Bootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_Dark.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<HxCarousel Controls="true" Indicators="true" Dark="true"> | ||
<HxCarouselItem Active="true"> | ||
<DemoImage Text="First Slide" Color="#f5f5f5" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Second Slide" Color="#f0f0f0" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Third Slide" Color="#e5e5e5" /> | ||
</HxCarouselItem> | ||
</HxCarousel> |
36 changes: 16 additions & 20 deletions
36
...s.Web.Bootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_Events.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,22 @@ | ||
<HxCarousel @ref="carousel" Controls="true" OnSlide="IncrementSlideCount" Interval="1000"> | ||
<HxCarouselItem Active="true"> | ||
<div class="d-flex justify-content-center">Carousel Item 1</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 2</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 3</div> | ||
</HxCarouselItem> | ||
<HxCarousel Controls="true" OnSlide="IncrementSlideCount" Interval="1000"> | ||
<HxCarouselItem Active="true"> | ||
<DemoImage Text="First Slide" Color="#666" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Second Slide" Color="#555" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Third Slide" Color="#444" /> | ||
</HxCarouselItem> | ||
</HxCarousel> | ||
|
||
<br /> | ||
|
||
<h4>Slide count: @slideCount</h4> | ||
<p>Slide count: @slideCount</p> | ||
|
||
@code { | ||
private HxCarousel carousel; | ||
private int slideCount; | ||
private int slideCount; | ||
|
||
private void IncrementSlideCount() | ||
{ | ||
slideCount++; | ||
StateHasChanged(); | ||
} | ||
private void IncrementSlideCount() | ||
{ | ||
slideCount++; | ||
} | ||
} |
28 changes: 11 additions & 17 deletions
28
...b.Bootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_Indicators.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,11 @@ | ||
<HxCarousel Controls="true" Indicators="true" @ref="carousel"> | ||
<HxCarouselItem Active="true"> | ||
<div class="d-flex justify-content-center">Carousel Item 1</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 2</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 3</div> | ||
</HxCarouselItem> | ||
</HxCarousel> | ||
|
||
<HxButton Color="ThemeColor.Primary" OnClick="() => carousel.Initialize()" CssClass="mt-2" Text="Initialize" /> | ||
|
||
@code { | ||
private HxCarousel carousel; | ||
} | ||
<HxCarousel Indicators="true" Controls="true"> | ||
<HxCarouselItem Active="true"> | ||
<DemoImage Text="First Slide" Color="#666" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Second Slide" Color="#555" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Third Slide" Color="#444" /> | ||
</HxCarouselItem> | ||
</HxCarousel> |
11 changes: 11 additions & 0 deletions
11
...eb.Bootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_Intervals.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<HxCarousel Controls="true" Interval="2500"> | ||
<HxCarouselItem Active="true" Interval="2000"> | ||
<DemoImage Text="First Slide" Color="#666" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Second Slide" Color="#555" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem Interval="500"> | ||
<DemoImage Text="Third Slide" Color="#444" /> | ||
</HxCarouselItem> | ||
</HxCarousel> |
11 changes: 0 additions & 11 deletions
11
...ts.Web.Bootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_Light.razor
This file was deleted.
Oops, something went wrong.
18 changes: 9 additions & 9 deletions
18
...ootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_NoAutoSliding.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<HxCarousel Controls="true" Interval="null"> | ||
<HxCarouselItem Active="true"> | ||
<div class="d-flex justify-content-center">Carousel Item 1</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 2</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 3</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem Active="true"> | ||
<DemoImage Text="First Slide" Color="#666" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Second Slide" Color="#555" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Third Slide" Color="#444" /> | ||
</HxCarouselItem> | ||
</HxCarousel> |
11 changes: 0 additions & 11 deletions
11
...tstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_PerItemInterval.razor
This file was deleted.
Oops, something went wrong.
19 changes: 19 additions & 0 deletions
19
...rap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_ProgramaticControl.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<HxCarousel @ref="carousel" Ride="CarouselRide.False" Controls="true" Interval="1000" CssClass="mb-2"> | ||
<HxCarouselItem Active="true"> | ||
<DemoImage Text="First Slide" Color="#666" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Second Slide" Color="#555" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Third Slide" Color="#444" /> | ||
</HxCarouselItem> | ||
</HxCarousel> | ||
|
||
<HxButton Color="ThemeColor.Success" OnClick="() => carousel.CycleAsync()" Text="Cycle" /> | ||
<HxButton Color="ThemeColor.Danger" OnClick="() => carousel.PauseAsync()" Text="Pause" /> | ||
<HxButton Color="ThemeColor.Dark" OnClick="() => carousel.SlideToAsync(1)" Text="Slide item 1" /> | ||
|
||
@code { | ||
private HxCarousel carousel; | ||
} |
20 changes: 10 additions & 10 deletions
20
...b.Bootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_SlidesOnly.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<HxCarousel Interval="2000" Controls="true"> | ||
<HxCarouselItem Active="true"> | ||
<div class="d-flex justify-content-center">Carousel Item 1</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 2</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 3</div> | ||
</HxCarouselItem> | ||
<HxCarousel> | ||
<HxCarouselItem Active="true"> | ||
<DemoImage Text="First Slide" Color="#666" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Second Slide" Color="#555" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Third Slide" Color="#444" /> | ||
</HxCarouselItem> | ||
</HxCarousel> |
18 changes: 9 additions & 9 deletions
18
...Bootstrap.Documentation/Pages/Components/HxCarouselDoc/HxCarousel_Demo_TouchSwiping.razor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<HxCarousel Controls="true" TouchSwiping="false"> | ||
<HxCarouselItem Active="true"> | ||
<div class="d-flex justify-content-center">Carousel Item 1</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 2</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<div class="d-flex justify-content-center">Carousel Item 3</div> | ||
</HxCarouselItem> | ||
<HxCarouselItem Active="true"> | ||
<DemoImage Text="First Slide" Color="#666" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Second Slide" Color="#555" /> | ||
</HxCarouselItem> | ||
<HxCarouselItem> | ||
<DemoImage Text="Third Slide" Color="#444" /> | ||
</HxCarouselItem> | ||
</HxCarousel> |
Oops, something went wrong.