grocy/js/components/locationpicker.js
2021-06-23 20:31:13 +02:00

18 lines
365 B
JavaScript

import BasePicker from "./BasePicker";
class locationpicker extends BasePicker
{
constructor(Grocy, scopeSelector = null)
{
super(Grocy, "#location_id", scopeSelector);
this.picker = this.$(this.basename);
this.inputElement = this.$('#location_id_text_input');
this.initCombobox('.location-combobox');
this.prefill();
}
}
export { locationpicker }