Skip to content

Commit a2729a6

Browse files
javier-godoypaodb
authored andcommitted
feat: add getTabCount method
1 parent ac03f19 commit a2729a6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/com/flowingcode/vaadin/addons/enhancedtabs/EnhancedTabs.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,10 @@ public Tab getTabAt(int index) {
564564
+ index));
565565
}
566566

567+
public int getTabCount() {
568+
return (int) getTabs().count();
569+
}
570+
567571
private Stream<Tab> getTabs() {
568572
return getContent().getItems().stream().map(EnhancedTabs::getTab).filter(Objects::nonNull);
569573
}

0 commit comments

Comments
 (0)