Renamed search max height to results max height.

This commit is contained in:
MattMo 2023-10-30 15:31:17 -07:00
parent 7a950f307d
commit 1c6a33cd0f

View File

@ -21,10 +21,10 @@ class SearchSelect extends IgniteElement {
searchSelector: null, searchSelector: null,
searchCallback: null, searchCallback: null,
searchDelay: 200, searchDelay: 200,
searchMaxHeight: "15em",
searching: false, searching: false,
documentListener: null, documentListener: null,
maxResults: -1, maxResults: -1,
resultsMaxHeight: "15em",
onEnter: null onEnter: null
}; };
} }
@ -133,7 +133,7 @@ class SearchSelect extends IgniteElement {
//Search results popper //Search results popper
new Popper() new Popper()
.class("form-control form-control-lg shadow d-flex flex-column gap-3 overflow-auto p-3") .class("form-control form-control-lg shadow d-flex flex-column gap-3 overflow-auto p-3")
.style("max-height", this.searchMaxHeight) .style("max-height", this.resultsMaxHeight)
.property("show", this.searching) .property("show", this.searching)
.child( .child(
new span().class("text-muted").innerText(this.results, results => results && results.length > 0 ? `Showing ${results.length} ${results.length == 1 ? "result" : "results"}` : "No results"), new span().class("text-muted").innerText(this.results, results => results && results.length > 0 ? `Showing ${results.length} ${results.length == 1 ? "result" : "results"}` : "No results"),