A simple Tag input control for JavaFx.
License: MIT
Declare the repository and add build dependency
repositories {
maven{
url 'https://dl.bintray.com/sschoen/JavaLibs'
}
}
...
dependencies {
implementation 'com.gmail.steffen1995:taginputfx:1.0.0'
}Use the control
import com.gmail.steffen1995.taginputfx.TagInput;
// create a new TagInput
TagInput tagInput = new TagInput();
// optionally, set available tags for suggestions when typing
tagInput.setAvailableTags(myTags);
// selected tags can be specified the following way
tagInput.setSelectedTags(initialTags);
// by default, new tags can be created, if you only want selection from the available tags use
tagInput.setAllowNewTags(false);