Skip to content

Commit

Permalink
Improve implementation with suggestion hints
Browse files Browse the repository at this point in the history
  • Loading branch information
markusweigelt committed Dec 5, 2023
1 parent 79d8355 commit 1cd2da6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,8 @@ public boolean isEditable() {
@Override
public boolean isFilterable() {
InputType inputType = getInputType();
if (InputType.MULTIPLE_SELECTION.equals(inputType) || InputType.ONE_LINE_SINGLE_SELECTION.equals(inputType)) {
if (InputType.MULTIPLE_SELECTION.equals(inputType) || InputType.MULTI_LINE_SINGLE_SELECTION.equals(
inputType) || InputType.ONE_LINE_SINGLE_SELECTION.equals(inputType)) {
return settings.isFilterable(declaration.getId());
}
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,8 @@ boolean isEditable(String keyId) {
boolean isFilterable(String keyId) {
if (currentSettings.containsKey(keyId)) {
return currentSettings.get(keyId).isFilterable();
} else {
return false;
}
return false;
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public class Setting {
@XmlAttribute
private Boolean editable;

/**
* This will present an input filter for the list of options in select fields if set to true. When entering text,
* the filter will display only those options that contain the entered text. This attribute exclusively works with
* keys that have an option list; for other keys, no action will occur.
*/
@XmlAttribute
private Boolean filterable;

Expand Down

0 comments on commit 1cd2da6

Please sign in to comment.