Skip to content

Commit 2637549

Browse files
committed
Merge pull request #345 from GwtMaterialDesign/mk_dev
Added Option with String value as constructor for ease of use on addi…
2 parents c6a59b7 + 5ed391b commit 2637549

File tree

1 file changed

+5
-0
lines changed
  • gwt-material/src/main/java/gwt/material/design/client/ui/html

1 file changed

+5
-0
lines changed

gwt-material/src/main/java/gwt/material/design/client/ui/html/Option.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ public Option() {
5656
super(Document.get().createElement(OptionElement.TAG));
5757
}
5858

59+
public Option(String value) {
60+
this();
61+
setText(value);
62+
}
63+
5964
/**
6065
* The index of this OPTION in its parent SELECT, starting from 0.
6166
*/

0 commit comments

Comments
 (0)