Example usage for com.google.gwt.dom.client SelectElement setAttribute

List of usage examples for com.google.gwt.dom.client SelectElement setAttribute

Introduction

In this page you can find the example usage for com.google.gwt.dom.client SelectElement setAttribute.

Prototype

@Override
    public void setAttribute(String name, String value) 

Source Link

Usage

From source file:org.gwtbootstrap3.extras.tagsinput.client.ui.base.MultiValueTagsInput.java

License:Apache License

public MultiValueTagsInput(final Collection<? extends Dataset<T>> datasets) {
    SelectElement tagsSelect = Document.get().createSelectElement();
    tagsSelect.setMultiple(true);// ww w .  j a  v  a 2 s . com
    tagsSelect.setAttribute("data-role", "tagsinput");

    setElement(tagsSelect);

    setDatasets(datasets);
}