Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150389 | Jan 5,2020 08:34 AM UTC | Jan 7,2020 09:18 AM UTC | Blazor | 3 |
![]() |
Tags: Tabs |
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); } } |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.