Just a warning
Yes, you can safely ignore the warning. It's simply the schema informing you that the tab item has a declared type of "string", but you've turned it into an object. I forget why we didn't or couldn't update that type.
Thanks to both of you for your replies.
viewPath doesn't work as shown in the manual. My version is 8.1.33.
Should I use embedded views per tab and link it manually?
We have testing in place to ensure that it does indeed work. Could you please share your configured properties and a screenshot of the desired View at it exists in the Project Browser of your Designer after saving your project. I need to see that you've supplied the path to View correctly.
I created a new project to test it.
I made sure I saved it.
View "Sub Tab 1" is a big smiley.
Edit:
I see someone had the same problem.
I don't see my viewPath as a path so it's not doing either one. @cmallonee maybe you can answer over there as the post is addressing exactly this.
How are you expecting this tab to work? You can't supply both a text
property AND viewPath
property. Delet the text
property and your tab should begin working.
From the docs:
If the element is changed to an object data type, then the text on the tab can be set by adding a text value member to the object and providing a string, as seen on element 0 below. Alternatively, viewPath (value data type) and viewParams (object data type) can be added to the element, which allows you to render a view inside the tab as well as pass parameters to it.
Notice in the example screenshots from the docs that the Tab configured to display a View does not have the text
property.
ing.
Here is my mistake. I thought that viewPath was for the content and not the header.
It made sense to me because it's only possible to add one component inside a tab, which will mostly be another embedded view.
It does make sense to have the option to add an embedded view as a tab.
Thanks!
Edit:
Although I'm just using text
instead of viewPath
, I do like the other two options: disabled
and runWhileHidden
.