Class MBCarousel<TItem>
An carousel, implementing animation using an MBSlidingContent<TItem>.
public class MBCarousel<TItem> : InputComponent<int>, IComponent, IHandleEvent, IHandleAfterRender, IDisposableType Parameters
- TItem
- Inheritance
- 
      
      
      
      
      MBCarousel<TItem>
- Implements
- Inherited Members
Constructors
MBCarousel()
public MBCarousel()Properties
Content
Content render fragments under the tab bar.
[Parameter]
public RenderFragment<TItem> Content { get; set; }Property Value
- RenderFragment<TItem>
Items
The tab details plus items to be displayed under the tab bar depending upon tab index.
[Parameter]
public IEnumerable<TItem> Items { get; set; }Property Value
- IEnumerable<TItem>
RolloverInterval
The interval in milliseconds to roll over from one panel of content to the next. Clamped between 1,000 and 60,000. Defaults to 3,000.
[Parameter]
public int RolloverInterval { get; set; }Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Renders the component to the supplied RenderTreeBuilder.
protected override void BuildRenderTree(RenderTreeBuilder __builder)Parameters
- __builderRenderTreeBuilder
OnAfterRenderAsync(bool)
Material.Blazor components generally should not override this because it handles the case where components need
to be adjusted when inside an MBDialog or MBCard.
protected override Task OnAfterRenderAsync(bool firstRender)Parameters
- firstRenderbool
Returns
OnInitializedAsync()
protected override Task OnInitializedAsync()Returns
OnParametersSetAsync()
When overriding this, call await base.OnParametersSetAsync(); before any user code unless there is a very good reason not to.
protected override Task OnParametersSetAsync()