cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Using a tabset widget (Tab selector)

Tomellache2B
14-Alexandrite

Using a tabset widget (Tab selector)

Good day community.

 

I have three templates, each containing different things.

I want to display the things inside of each template one at a time. 

I am using the tab-set widget since I want to navigate through the different templates. However I am struggling to display below the things contained in each of my template.

 

I have tried binding values to the value and label widget property. Also I tried to write a service that outputs the things depending on the selected tabs.

Please see below:

 

if(SelectedTab === "Laptops")
{
var result = ThingTemplates["LaptopsTT"].GetImplementingThings();
}
if(SelectedTab === "Houses")
{
var result=ThingTemplates["HousesTT"].GetImplementingThings();
}else{
var result= ThingTemplates["CarsTT"].GetImplementingThings();
}

 

 

How do I go about this?

suggestions will really be appreciated

1 REPLY 1

Hello @Jay_nisa

 

I am confused by your description. Can you provide more details on what your mashup looks like and the difficulty you are having in getting the results you desire.

 

Thanks

 

Top Tags