Maximize productivity with
30% off* for a limited time
using BOOSTDEV30.
Includes 3- and 5-packs.
*Some exclusions may apply.New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.The following code doesn't work. Please give an example @using Syncfusion.EJ2.Blazor.Navigations <button @onclick="AddTab">Add Tab</button> <EjsTab @ref="_tab" CssClass="e-fill" Items="Items" OverflowMode="OverflowMode.Scrollable" ShowCloseButton="true"> </EjsTab> @code { private EjsTab _tab; List<TabItem> Items = new List<TabItem>(){ new TabItem() { Header = new TabHeader() { Text = "One" }, Content = "Test 1" }, new TabItem() { Header = new TabHeader() { Text = "Two" }, Content = "Test 2" } }; public void AddTab() { List<TabItem> tabs = new List<TabItem>() { new TabItem() { Header = new TabHeader() { Text = "Three" }, Content = "Test 3" }, new TabItem() { Header = new TabHeader() { Text = "FetchData" }, ContentTemplate = @<FetchData></FetchData> } }; _tab.AddTab(tabs, 0); } } |