tabs.get("tablename") not working
Posted: 2022-06-28 11:05
Hi,
I'm trying to add a link to a children tab but I cant get the child tab I need.
I'm getting all tabs and I can activate the tab I need with tabs.activate("tablename");
The problem comes when I'm trying to operate a single tab with tabs.get("tablename");. This function returns null in the console.
Here is my code:
I'm trying to add a link to a children tab but I cant get the child tab I need.
I'm getting all tabs and I can activate the tab I need with tabs.activate("tablename");
The problem comes when I'm trying to operate a single tab with tabs.get("tablename");. This function returns null in the console.
Here is my code:
Code: Select all
var dv = new AppGiniDetailView();
var tabs = dv.getChildrenTabs();
tabs.activate("slaughterhouse_exported"); //working
var tab = tabs.get("slaughterhouse_exported");
console.log(tab); // returns null
tab.addBadge(123); //cant get properties of null