Hi Alejandro! I updated my paged tabs to the new version 3.0.0. But I have

Hi Alejandro!

I updated my paged tabs to the new version 3.0.0.
But I have no success to use it.
I can create it, but in the view just show a tab, without the content.

Here my code:

@PageTitle(value = PagedTabView.TITLE)
@Route(value = PagedTabView.ROUTE)
public class PagedTabView extends VerticalLayout {

	private static final long serialVersionUID = -1150366417762641198L;
	public static final String ROUTE = "PagedTabs";
	public static final String TITLE = "Test Paged Tabs";

	private VerticalLayout container = new VerticalLayout();
		private PagedTabs tabs = new PagedTabs(container);
			private HorizontalLayout htl1 = new HorizontalLayout();
				private Label lbl1 = new Label("Page 1");


	public PagedTabView() {

		htl1.add(lbl1);
		htl1.setSizeFull();				

		tabs.add("Tab caption 1", htl1);
		tabs.add("Tab caption 2", new Span("Page 2") );

		add(tabs);
	}

}

It seems you forgot to add the container component to your layout (for example add(tabs, container)).

Hi Alejandro!

You are right!

Thanks!

Sorry for my mistake!

No worries, it’s easy to forget it especially if you are migrating from a previous version of the component since that was an important change in the API.