public static InputBuilder<HTMLInputElement> input(String type) { return input(type, HTMLInputElement.class); }
public static InputBuilder<HTMLInputElement> input(InputType type) { return input(type.name()); }
@Override protected HTMLInputElement createInputElement(String type) { return input("text") .css(FormFieldsStyles.FORM_CONTROL) .asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return input("text") .css(FormFieldsStyles.FORM_CONTROL) .asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return input(type).css("form-control").asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return Elements.input(type).css("form-control").asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return Elements.input(type).css("form-control").asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return Elements.input(type).css("form-control").asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return Elements.input(type).css("form-control").asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return Elements.input(type).css("form-control").asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return input(type).css("form-control").asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return Elements.input(type).css("form-control").asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return input("text").css("form-control") .attr("readOnly", "true") .asElement(); }
@Override protected HTMLInputElement createInputElement(String type) { return input("text").css("form-control") .attr("readOnly", "true") .asElement(); }
private void createHiddenInput() { hiddenFileInput = input("file") .style("visibility: hidden; position: absolute; top: 0px; left: 0px; height: 0px; width: 0px;").asElement(); DomGlobal.document.body.appendChild(hiddenFileInput); }
private void createHiddenInput() { hiddenFileInput = input("file") .style("visibility: hidden; position: absolute; top: 0px; left: 0px; height: 0px; width: 0px;").asElement(); DomGlobal.document.body.appendChild(hiddenFileInput); }
@Override protected HTMLDivElement createInputElement(String type) { DominoElement<HTMLDivElement> tagsInputContainer = DominoElement.div().addCss("tags-input", "form-control"); tagTextInput = DominoElement.of(input(type)).addCss("tag-text-input"); dropDownMenu = DropDownMenu.create(tagTextInput) .setPosition(DropDownPosition.BOTTOM) .addCloseHandler(() -> tagTextInput.asElement().focus()); tagsInputContainer.appendChild(tagTextInput); tagsInputContainer.addEventListener("click", evt -> { tagTextInput.asElement().focus(); evt.stopPropagation(); }); initListeners(); return tagsInputContainer.asElement(); }
@Override protected HTMLDivElement createInputElement(String type) { DominoElement<HTMLDivElement> tagsInputContainer = DominoElement.div().addCss("tags-input", "form-control"); tagTextInput = DominoElement.of(input(type)).addCss("tag-text-input"); dropDownMenu = DropDownMenu.create(tagTextInput) .setPosition(DropDownPosition.BOTTOM) .addCloseHandler(() -> tagTextInput.asElement().focus()); tagsInputContainer.appendChild(tagTextInput); tagsInputContainer.addEventListener("click", evt -> { tagTextInput.asElement().focus(); evt.stopPropagation(); }); initListeners(); return tagsInputContainer.asElement(); }