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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Using a tabset widget (Tab selector)

Janicen
16-Pearl

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
PEHOWE
16-Pearl
(To:Janicen)

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

 

Announcements


Top Tags