Skip to content

Instantly share code, notes, and snippets.

@yateam
Last active January 17, 2017 00:27
Show Gist options
  • Save yateam/e62bad53139df00b691c035f869ae09d to your computer and use it in GitHub Desktop.
Save yateam/e62bad53139df00b691c035f869ae09d to your computer and use it in GitHub Desktop.
div()
.withClass("gw-CardViewWidget--tabbar")
.with(
getWidget().getChildren(CardWidget.class).stream().map(card ->
div()
.withId(card.getRenderId())
.withClass("gw-CardViewWidget--tab")
.withCondClass(card.isCurrent(), "gw-active")
.withData("gw-click", "fireEvent")
.with(
div().withClass("gw-icon"),
div().withClass("gw-CardViewWidget--tab--inner gw-label")
)
).collect(Collectors.toList()));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment