We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a65026 + f04940f commit 6d96301Copy full SHA for 6d96301
src/main/java/gwt/material/design/addins/client/autocomplete/MaterialAutoComplete.java
@@ -508,6 +508,18 @@ public void setLimit(int limit) {
508
}
509
510
511
+ /**
512
+ * Set the number of suggestions to be displayed to the user. This differs from
513
+ * setLimit() which set both the suggestions displayed AND the limit of values
514
+ * allowed within the autocomplete.
515
+ * @param limit
516
+ */
517
+ public void setAutoSuggestLimit(int limit) {
518
+ if (this.box != null) {
519
+ this.box.setLimit(limit);
520
+ }
521
522
+
523
@Override
524
public String getPlaceholder() {
525
return placeholderLabel.getText();
0 commit comments