This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "SGreetings.h" | |
#include "SlateOptMacros.h" | |
#include "Widgets/Input/SEditableTextBox.h" | |
#define LOCTEXT_NAMESPACE "SGreetings" | |
const TArray<FText> SGreetings::Titles = | |
{ | |
LOCTEXT("Mr", "Mr."), | |
LOCTEXT("Mrs", "Mrs."), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div( | |
id(widget.getRenderId()), | |
classNames(getWidgetTypeCssClass(widget), getModeClass()), | |
div( | |
title(widget.getTooltip()), | |
className("gw-header--icon"), | |
event(getMode() == Mode.ACTION, Tag.Event.CLICK, "id:" + widget.getRenderId()), | |
!Strings.isNullOrEmpty(icon.getSource()) ? | |
img().src(icon.getSource()) : | |
text(widget.getLabel())), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div() | |
.className("gw-CardViewWidget--tabbar") | |
.__( | |
getWidget().getChildren(CardWidget.class).stream().map(card -> | |
div() | |
.id(card.getRenderId()) | |
.className("gw-CardViewWidget--tab") | |
.className(card.isCurrent(), "gw-active") | |
.event(Tag.Event.CLICK, "fireEvent") | |
.__( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package template; | |
public class ContentBuilder extends ElementBuilder { | |
private String content; | |
public ContentBuilder(String content) { | |
this.content = content; | |
} | |
@Override | |
public String build() { |