]> BookStack Code Mirror - bookstack/blobdiff - resources/js/components/entity-selector-popup.js
Text: Tweaks to EN text for consistency/readability
[bookstack] / resources / js / components / entity-selector-popup.js
index 9ff67d53efbe49637ddabd87f9fc50f333e9f2ac..6fb461968859ece0ad0f8934743c42e4f97c13d0 100644 (file)
@@ -15,8 +15,15 @@ export class EntitySelectorPopup extends Component {
         window.$events.listen('entity-select-confirm', this.handleConfirmedSelection.bind(this));
     }
 
-    show(callback, searchText = '') {
+    /**
+     * Show the selector popup.
+     * @param {Function} callback
+     * @param {String} searchText
+     * @param {EntitySelectorSearchOptions} searchOptions
+     */
+    show(callback, searchText = '', searchOptions = {}) {
         this.callback = callback;
+        this.getSelector().configureSearchOptions(searchOptions);
         this.getPopup().show();
 
         if (searchText) {