I was trying to insert an new tab item into an existing tab and see that the items collection is null.
I then tried the same in the Blazor sample in which I tried all of the insert methods to insert a new tab item into an existing Tab but it too shows the items collection is null.
I tried the following which does not work…
private void OnReady(DockingLayout dockingLayout)
{
var targetIndex = dockingLayout.GetIndex(“tabPanel”);
if (targetIndex != null)
{
var newPanel = new object[]
{
new {
id=”outputTab2″,
label = “Output Tab2”,
content = “OutPut Tab2”
}
};
dockingLayout.InsertIntoRight(targetIndex, newPanel);
}
}
Using the Blazor sample, within the OnReady event handler, can someone please provide and example as to how to insert a new tab item to the right and also sample to the left of the existing TabA in the sample?
How come the items collection is null in the Blazor Sample’s OnReady event handler, shouldn’t that have values?
How do I get the panel associated to TabA given that the items collection is null?