Skip to content

Instantly share code, notes, and snippets.

@vegegoku
Last active May 5, 2022 14:21
Show Gist options
  • Save vegegoku/7cad3eacd56f02c6f5ef05713c2e3e65 to your computer and use it in GitHub Desktop.
Save vegegoku/7cad3eacd56f02c6f5ef05713c2e3e65 to your computer and use it in GitHub Desktop.
package org.dominokit.samples;
import elemental2.dom.HTMLDivElement;
import org.dominokit.domino.ui.cards.Card;
import org.dominokit.domino.ui.forms.TextBox;
import org.dominokit.domino.ui.utils.BaseDominoElement;
import org.dominokit.domino.ui.utils.DominoElement;
public class InputElement extends BaseDominoElement<HTMLDivElement, InputElement> {
private DominoElement<HTMLDivElement> root= DominoElement.div();
public InputElement() {
init(this);
appendChild(Card.create()
.appendChild(TextBox.create("Sample text input"))
);
}
@Override
public HTMLDivElement element() {
return root.element();
}
}
@vegegoku
Copy link
Author

vegegoku commented May 5, 2022

my gwt.xml

<?xml version="1.0" encoding="UTF-8"?>
<module>
  <inherits name="com.google.gwt.user.User" />
  <inherits name="org.dominokit.domino.ui.DominoUI"/>

  <source path="" />

  <entry-point class="org.dominokit.samples.App" />

 <collapse-all-properties/>
</module>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment