We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 744c351 commit 74d152aCopy full SHA for 74d152a
src/main/java/com/flowingcode/vaadin/addons/demo/TabbedDemo.java
@@ -122,6 +122,9 @@ public void addDemo(Component demo) {
122
* @param sourceCodeUrl the url of the demo, <b>null</b> to not show source code section.
123
*/
124
public void addDemo(Component demo, String label, String sourceCodeUrl) {
125
+ if (!demo.getId().isPresent()) {
126
+ demo.setId("content");
127
+ }
128
Tab tab = new Tab(label);
129
if (sourceCodeUrl != null) {
130
demos.put(tab, new SplitLayoutDemo(demo, sourceCodeUrl));
0 commit comments