Table of Contents

Class TabContainer

Namespace
Dynamicweb.CoreUI.Layout
Assembly
Dynamicweb.CoreUI.dll
public sealed class TabContainer : LayoutComponent<Tab>, IRootComponent
Inheritance
TabContainer
Implements
Inherited Members
Extension Methods

Properties

Tabs

public IEnumerable<Tab> Tabs { get; }

Property Value

IEnumerable<Tab>

Methods

AddTab(string?)

Adds a new Tab to this container even if a tab with the same name exists. Use GetOrAddTab(string?) instead to reuse an existing tab.

public Tab AddTab(string? name = null)

Parameters

name string

The name of the tab, if given.

Returns

Tab

A new tab with the given name.

GetComponentHierarchy()

protected override ICollection<Tab> GetComponentHierarchy()

Returns

ICollection<Tab>

GetOrAddTab(string?)

Gets or adds a Tab with the given name. If no tab with the given name exists, a new tab is created.

public Tab GetOrAddTab(string? name = null)

Parameters

name string

The name of the tab, if given.

Returns

Tab

An existing or new tab with the given name.

SetComponentHierarchy(ICollection<Tab>)

protected override void SetComponentHierarchy(ICollection<Tab> components)

Parameters

components ICollection<Tab>
To top